Update replay auto-redirect

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.)
This commit is contained in:
Guangcong Luo 2018-05-19 19:15:15 -04:00
parent eacd61cde2
commit 838ed99274

View File

@ -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]