-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
62 lines (41 loc) · 1.92 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
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^.*$ - [L,QSA]
#Rewrite for group rankings
RewriteRule ^index/ranking/([a-zA-Z]+)/([0-9]+) index.php?p=ranking&s=$1&page=$2 [NC,L]
#Rewrite for group rankings
RewriteRule ^index/ranking/([a-zA-Z]+) index.php?p=ranking&s=$1 [NC,L]
#Rewrite for rankings page
RewriteRule ^index/ranking/([0-9]+) index.php?p=ranking&page=$1 [NC,L]
#Rewrite for ranking episode page
RewriteRule ^index/ranking-episodes/([0-9]+)/([0-9]+) index.php?p=ranking-episodes&ep=$1&page=$2 [NC,L]
RewriteRule ^index/ranking-episodes/([0-9]+) index.php?p=ranking-episodes&ep=$1 [NC,L]
#Rewrite for ranking bets page
RewriteRule ^index/ranking-bets/([0-9]+) index.php?p=ranking-bets&page=$1 [NC,L]
#Rewrite for ranking arena page
RewriteRule ^index/ranking-arena/([0-9]+) index.php?p=ranking-arena&page=$1 [NC,L]
#Rewrite homepage registration invitation
RewriteRule ^index/home/1/(.*) index.php?p=home&sec=1&invite=$1 [NC,L]
#Rewrite homepage password recover
RewriteRule ^index/home/2/(.*) index.php?p=home&sec=2&r=$1 [NC,L]
#Rewrite homepage
RewriteRule ^index/home/([0-9a-zA-Z-_]+) index.php?p=home&sec=$1 [NC,L]
#Rewrite for about donation
RewriteRule ^index/about-donation/(.*) index.php?p=about-donation&email=$1 [NC,L]
#Rewrite for market with pg parameter
RewriteRule ^index/market/([0-9]+) index.php?p=market&pg=$1 [NC,L]
#General rewrite for page only parameter
RewriteRule ^index/([0-9a-zA-Z-_]+) index.php?p=$1 [NC,L]
#Rewrite external pages
RewriteRule ^sponsor sponsor.php [NC,L]
RewriteRule ^countdown countdown.php [NC,L]
RewriteRule ^rules rules.php [NC,L]
RewriteRule ^throne throne.php [NC,L]
RewriteRule ^cookies cookies.php [NC,L]
#Caching
<FilesMatch "\.(flv|ico|pdf|js|css|webp|jpg|png|avi|mov|ppt|doc|mp3|wmv|wav)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>