Created
April 11, 2013 20:39
-
-
Save jasonsee/5366992 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# robots-dev.txt | |
# | |
# This is an alternate version of robots.txt that is used on dev and staging to prevent indexing of that content. | |
# .htaccess points users to this version on those hostnames. | |
# | |
User-agent: * | |
Crawl-delay: 10 | |
# Directories | |
Disallow: / | |
# .htaccess file | |
.. | |
<IfModule mod_rewrite.c> | |
.. | |
# Redirect Google to the alternate robots.txt file that disallows indexing for dev/staging sites. | |
RewriteCond %{HTTP_HOST} ^dev\.paulbooker\.co.uk$ [NC] | |
RewriteRule ^robots.txt$ /robots-dev.txt [L,NC,R=301] | |
.. | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment