Last active
January 4, 2016 17:11
-
-
Save allybee/ba035ab2e6e06989805e to your computer and use it in GitHub Desktop.
Disallow robots on Staging server
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
User-agent: * | |
Disallow: / |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
Options +FollowSymlinks | |
RewriteBase / | |
# On Staging, serve robots-staging.txt instead of robots.txt | |
RewriteCond %{HTTP_HOST} staging.spydertrapdev\.com [NC] | |
RewriteRule ^robots\.txt /robots-staging\.txt [NC,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment