Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10th May 2013, 15:08
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 201
Thanks: 68
Thanked 13 Times in 11 Posts
Default How to prevent search engine from indexing of Website auto alias domains

Hi,

I use Website auto alias in ISPConfig and I've found that search engines are indexing domain aliases. This is not desired status. So I decided to use X-Robots-Tag HTTP header (more info on developers.google.com for example). When you have in Website auto alias for example:

[client_id].test.domain.ltd

so you can put this directive to apache directive settings:

Code:
# Prevent search engine indexing on temporary domain sites:
<IfModule setenvif_module>
  <IfModule headers_module>
    SetEnvIf Host test\.domain\.ltd$ temporary_domain 
    Header set X-Robots-Tag "noindex, nofollow" env=temporary_domain
  </IfModule>
</IfModule>
Apache mod headers and mod setenvif has to be activated for properly work.

It would be nice if this functioin was included in ISPConfig directly as optional

SupuS
Reply With Quote
The Following 2 Users Say Thank You to SupuS For This Useful Post:
mattltm (24th June 2013), till (11th May 2013)
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alias Domains creating Trailing Slash Vamiris Installation/Configuration 1 3rd December 2012 09:55
howto Domain module, mail domains limit & mail alias unlimited ? radim_h Tips/Tricks/Mods 1 20th April 2011 11:24
alias domains vwpete Installation/Configuration 2 4th April 2011 12:23
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
postfix domains alias alxgomz Installation/Configuration 0 5th March 2007 12:53


All times are GMT +2. The time now is 10:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.