mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-06-02 22:09:20 -05:00
59 lines
1.7 KiB
ApacheConf
59 lines
1.7 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_HOST} ^www\.play\.pokemonshowdown\.com$ [NC,OR]
|
|
RewriteCond %{HTTP_HOST} ^(www\.)?psim\.us$ [NC]
|
|
RewriteRule ^(.*) http://play.pokemonshowdown.com/$1 [R=301,L]
|
|
|
|
RewriteCond %{HTTP_HOST} ^(.*?)-8000\.psim\.us$ [NC]
|
|
RewriteRule ^(.*) http://%1.psim.us/$1 [R=301,L]
|
|
|
|
RewriteRule ^topsekritsim\.php$ / [R=301,L]
|
|
RewriteRule ^topsekrit3\.php$ / [R=301,L]
|
|
RewriteRule ^temporary508\.php$ / [R=301,L]
|
|
RewriteRule ^temporary508\.php$ / [R=301,L]
|
|
RewriteRule ^sim\.php$ / [R=301,L]
|
|
|
|
#RewriteRule ^([A-Za-z0-9-]*)$ closed.php [L,QSA]
|
|
|
|
RewriteRule ^(teambuilder|ladder|lobby|battle)/?$ index.php [L,QSA]
|
|
RewriteRule ^(lobby|battle)-([A-Za-z0-9-]*)$ index.php [L,QSA]
|
|
|
|
RewriteRule ^replay/battle-([A-Za-z0-9-]+)$ http://pokemonshowdown.com/replay/$1 [R=302,L]
|
|
RewriteRule ^replay/turn_(.+)\.png$ replay/turn-image.php?data=$1 [L,QSA]
|
|
|
|
RewriteRule ^~~([^:/]*)(:[0-9]*)?/action\.php$ action.php?serverid=$1 [L,QSA]
|
|
RewriteRule ^~~([^:/]*):([0-9]*)(/.*)?$ http://$1-$2.psim.us$3 [R=301,L]
|
|
RewriteRule ^style/custom/([A-Za-z0-9-]*)\.css$ customcss.php?server=$1 [L]
|
|
|
|
RewriteRule ^backup/ - [F]
|
|
RewriteRule ^\.git/ - [F]
|
|
RewriteRule ^lib/ - [F]
|
|
RewriteRule ^githooks/ - [F]
|
|
|
|
RewriteRule ^\.gitignore$ - [F]
|
|
RewriteRule ^README\.md$ - [F]
|
|
RewriteRule ^index\.php\.template\.txt$ - [F]
|
|
RewriteRule ^testclient\.html$ - [F]
|
|
|
|
</IfModule>
|