Skip to content

Commit

Permalink
Update replay auto-redirect
Browse files Browse the repository at this point in the history
All battle numbers below 700 million now auto-redirect to Replays.

(All expired battles will redirect to Replays, the auto-redirect just
means the client doesn't need to ask the server if a battle is expired
and wait for an answer before redirecting.)
  • Loading branch information
Zarel committed May 19, 2018
1 parent eacd61c commit 838ed99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Header set Access-Control-Allow-Origin * env=SAFE_RESOURCE

# Redirect old battles to their corresponding replay
# RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
# RewriteRule ^battle-([a-z0-9]+-[12][0-9]{8})$ https://replay.pokemonshowdown.com/$1 [R=302,L]
# RewriteRule ^battle-([a-z0-9]+-[1-6][0-9]{8})$ https://replay.pokemonshowdown.com/$1 [R=302,L]
RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
RewriteRule ^battle-([a-z0-9]+-[0-9]{8})$ https://replay.pokemonshowdown.com/$1 [R=302,L]
RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
Expand Down

0 comments on commit 838ed99

Please sign in to comment.