-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01fae1e
commit 9de510a
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
# Prevent spidering of non-canonical URLs, | ||
# such as `[*.]staging.*` and `production.*`. | ||
RewriteCond %{HTTP_HOST} !^(www|local)\. | ||
RewriteCond %{HTTP_HOST} (^local|staging|^production) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ericclemmons
Author
Contributor
|
||
RewriteRule ^robots.txt$ no_robots.txt [L] | ||
</IfModule> | ||
# END Genesis WordPress | ||
|
I'm starting to feel uneasy about this. Rather than have to add more environment names, I'd rather it work where the .txt file only shows up on www. and non-www versions.
This would protect us for future namespaces live new. and dev. (you never know what someone will want to call their environments).