Permalink
Browse files

fix bug 844528 - no robots on allizom hosts

  • Loading branch information...
1 parent ee43ae0 commit c3ad2d2fb47f204ad145d9dd4169867ef27c13a7 @groovecoder groovecoder committed Mar 13, 2013
Showing with 6 additions and 0 deletions.
  1. +4 −0 configs/htaccess-without-mindtouch
  2. +2 −0 media/robots-go-away.txt
@@ -21,6 +21,10 @@ RewriteRule ^devnews(.*) data/www/devnews$1 [L]
RewriteRule ^web-tech(.*) data/www/web-tech$1 [L]
RewriteRule ^css(.*) data/www/css$1 [L]
+# Disable robots on dev and stage servers
+RewriteCond %{HTTP_HOST} allizom
+RewriteRule ^robots.txt$ media/robots-go-away.txt [L]
+
# Rewrites to robots & sitemaps
RewriteRule ^robots.txt$ media/robots.txt [L]
RewriteRule ^sitemap.xml$ media/sitemap.xml [L]
View
@@ -0,0 +1,2 @@
+User-Agent: *
+Disallow: /

0 comments on commit c3ad2d2

Please sign in to comment.