-
Notifications
You must be signed in to change notification settings - Fork 81
/
.htaccess
42 lines (32 loc) · 1.12 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -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>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
RewriteRule ^(.*)$ https://dex.pokemonshowdown.com/$1 [R=302,NE,L]
RewriteCond %{HTTP_HOST} ^www\.dex\.pokemonshowdown\.com$
RewriteRule ^(.*)$ https://dex.pokemonshowdown.com/$1 [R=301,NE,L]
RewriteRule ^pokedex(\/.*)?$ / [R=302,L]
RewriteRule ^pokemon(\/.*)?$ index.php [L,QSA]
RewriteRule ^items(\/.*)?$ index.php [L,QSA]
RewriteRule ^abilities(\/.*)?$ index.php [L,QSA]
RewriteRule ^tags(\/.*)?$ index.php [L,QSA]
RewriteRule ^egggroups(\/.*)?$ index.php [L,QSA]
RewriteRule ^moves(\/.*)?$ index.php [L,QSA]
RewriteRule ^types(\/.*)?$ index.php [L,QSA]
RewriteRule ^tiers(\/.*)?$ index.php [L,QSA]
RewriteRule ^categories(\/.*)?$ index.php [L,QSA]
RewriteRule ^articles\/([a-z0-9]+)\/?$ index.php [L,QSA]
RewriteRule ^\.git/ - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(apple-touch-icon-precomposed\.png)$ - [R=404,L]
</IfModule>