mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
The idea is to eventually move all client parts to their domain name subdirectory, for clarity and better organization. New Replays is just first. Anyway, yeah, minor updates to New Replays, but otherwise it's just getting deployed as-is, straight to https://replay.pokemonshowdown.com/ The old URLs are getting taken down; they were only used for development anyway.
41 lines
1.1 KiB
ApacheConf
41 lines
1.1 KiB
ApacheConf
# -FrontPage-
|
|
|
|
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
|
|
|
|
<Limit GET POST>
|
|
order deny,allow
|
|
deny from all
|
|
allow from all
|
|
</Limit>
|
|
<Limit PUT DELETE>
|
|
order deny,allow
|
|
deny from all
|
|
</Limit>
|
|
|
|
AddType text/plain .phps
|
|
AddType application/x-tgz .tgz
|
|
AddType application/x-chrome-extension .crx
|
|
AddType application/x-web-app-manifest+json .webapp
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
|
|
RewriteRule ^(.*)$ https://replay.pokemonshowdown.com/$1 [R=302,NE,L]
|
|
|
|
RewriteRule ^replay\/(.*)$ /$1 [R=302,L]
|
|
|
|
RewriteRule ^battle-([A-Za-z0-9-]+)?$ /$1 [R=302,L]
|
|
|
|
RewriteRule ^search/?$ search.php [L,QSA]
|
|
RewriteRule ^search\.json$ search.json.php [L,QSA]
|
|
RewriteRule ^([A-Za-z0-9-]+)$ battle.php?name=$1 [L,QSA]
|
|
RewriteRule ^([A-Za-z0-9-]+)/manage$ battle.php?name=$1&manage [L,QSA]
|
|
RewriteRule ^([A-Za-z0-9-]+)\.log$ battle.log.php?name=$1 [L,QSA]
|
|
RewriteRule ^([A-Za-z0-9-]+)\.json$ battle.log.php?json&name=$1 [L,QSA]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^(apple-touch-icon-precomposed\.png)$ - [R=404,L]
|
|
|
|
</IfModule>
|