Skip to content

Commit

Permalink
Fix regex for no_robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ericclemmons committed Oct 18, 2013
1 parent 01fae1e commit 9de510a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/web/htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
@ericrasch

ericrasch Oct 22, 2013

Contributor

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).

This comment has been minimized.

Copy link
@ericclemmons

ericclemmons Oct 23, 2013

Author Contributor

I agree. Can you make an issue for it? This can then be moved to the vhosts directly instead...

RewriteRule ^robots.txt$ no_robots.txt [L]
</IfModule>
# END Genesis WordPress
Expand Down

0 comments on commit 9de510a

Please sign in to comment.