Skip to content

Commit

Permalink
Stop banning search indexers
Browse files Browse the repository at this point in the history
Ideally, I'd still like to direct people to the landing page of
pokemonshowdown.com, but I no longer think that blocking search
engine access to play.pokemonshowdown.com is the best approach to
achieving that.
  • Loading branch information
Zarel committed Feb 22, 2016
1 parent c98ebe8 commit 236165a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ RewriteRule ^bugs?(reports?)?\/?$ https://www.smogon.com/forums/threads/bug-repo
RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
RewriteRule ^rules?\/?$ http://pokemonshowdown.com/rules [R=302,L]

# Send bingbot a `noindex` header on every page.
RewriteCond %{HTTP_USER_AGENT} bingbot
RewriteRule ^(.*) - [E=BINGBOT:1]
Header set X-Robots-Tag "noindex" env=BINGBOT
Header unset Vary env=BINGBOT

RewriteCond %{HTTP_HOST} ^www\.play\.pokemonshowdown\.com$ [NC]
RewriteRule ^(.*) http%{ENV:P_SUFFIX}://play.pokemonshowdown.com/$1 [R=301,L]

Expand Down Expand Up @@ -72,7 +66,6 @@ RewriteRule ^([A-Za-z0-9][A-Za-z0-9-]*)$ ./ [L,E=INDEX_PAGE:1]
Header set Cache-Control "no-cache, no-store, must-revalidate" env=INDEX_PAGE
Header set Pragma "no-cache" env=INDEX_PAGE
Header set Expires "0" env=INDEX_PAGE
Header set X-Robots-Tag "noindex" env=INDEX_PAGE

# No direct linking to the lobby.
RewriteCond %{ENV:SCRIPT_URL} ^/(lobby/?)?$
Expand Down
8 changes: 0 additions & 8 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
User-agent: Mediapartners-Google
Disallow:

User-agent: *
Disallow: /

User-agent: bingbot
Allow: /

0 comments on commit 236165a

Please sign in to comment.