-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.htaccess
71 lines (53 loc) · 3.49 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^userdata\.php$ /userdata [R=301,L]
RewriteRule ^(.*)/index\.php$ /$1/ [R=301,L]
RewriteRule ^$ /index [R=301,L]
RewriteRule ^/index$ handler.php?request=index [NC,L]
RewriteRule ^([a-z0-9-]+)/$ handler.php?request=$1 [NC,L]
RewriteRule ^([a-z0-9-]+)$ handler.php?request=$1 [NC,L]
RewriteRule ^([a-z0-9-]+)/([0-9-]+)$ handler.php?request=$1&id=$2 [NC,L]
RewriteRule ^([a-z0-9-]+)/([0-9-]+)/$ handler.php?request=$1&id=$2 [NC,L]
RewriteRule ^([a-z0-9-]+)/([0-9-]+)/([a-z0-9-]+)/$ handler.php?request=$1&id=$2&subrequest=$3 [NC,L]
RewriteRule ^([a-z0-9-]+)/([0-9-]+)/([a-z0-9-]+)$ handler.php?request=$1&id=$2&subrequest=$3 [NC,L]
RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)/$ handler.php?request=$1&method=$2 [NC,L]
RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)$ handler.php?request=$1&method=$2 [NC,L]
RewriteRule ^league/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/$ handler.php?request=league&country=$1&div=$2&group=$3 [NC,L]
RewriteRule ^league/([a-z0-9-]+)/([a-z0-9z0-9-]+)/([a-z0-9z0-9-]+)$ handler.php?request=league&country=$1&div=$2&group=$3 [NC,L]
RewriteRule ^league/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/$ handler.php?request=league&country=$1&div=$2&group=$3&subrequest=$4 [NC,L]
RewriteRule ^league/([a-z0-9-]+)/([a-z0-9z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)$ handler.php?request=league&country=$1&div=$2&group=$3&subrequest=$4 [NC,L]
RewriteRule ^feed/([0-9-]+)/([a-z0-9-]+)/([0-9-]+)/$ handler.php?request=feed&id=$1&method=$2&page=$3 [NC,L]
RewriteRule ^feed/([0-9-]+)/([a-z0-9-]+)/([0-9-]+)$ handler.php?request=feed&id=$1&method=$2&page=$3 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/([0-9-]+)/$ handler.php?request=forum&country=$1&type=$2&page=$3 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/([0-9-]+)$ handler.php?request=forum&country=$1&type=$2&page=$3 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/$ handler.php?request=forum&country=$1&type=$2 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)$ handler.php?request=forum&country=$1&type=$2 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/([a-z-]+)/$ handler.php?request=forum&country=$1&type=$2&subrequest=$3 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/([a-z-]+)$ handler.php?request=forum&country=$1&type=$2&subrequest=$3 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/topic/([0-9-]+)/([0-9-]+)/$ handler.php?request=forum&country=$1&type=$2&topic=$3&page=$4 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/topic/([0-9-]+)/([0-9-]+)$ handler.php?request=forum&country=$1&type=$2&topic=$3&page=$4 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/topic/([0-9-]+)/$ handler.php?request=forum&country=$1&type=$2&topic=$3&page=1 [NC,L]
RewriteRule ^forum/([a-z-]+)/([a-z-]+)/topic/([0-9-]+)$ handler.php?request=forum&country=$1&type=$2&topic=$3&page=1 [NC,L]
</IfModule>
<IfModule mod_speling.c>
CheckSpelling On
CheckCaseOnly On
</IfModule>
<FilesMatch "\.(ini|cgi|htaccess|json)$">
Order Deny,Allow
Deny from All
</FilesMatch>
ErrorDocument 403 /403/
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 20 days"
</IfModule>