-
Notifications
You must be signed in to change notification settings - Fork 39
/
.htaccess
34 lines (28 loc) · 1.3 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
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^d3local\.com$
RewriteRule ^.*$ http://www.d3local.com/$0 [L,R=301]
RewriteRule ^(items|itemsets|powers)_diff.html$ http://www.d3local.com/diff/$1 [L,R=301]
#RewriteCond %{HTTP_HOST} ^ptr\.d3local\.com$
#RewriteRule ^.*$ http://www.d3local.com/$0 [L,R=302]
RewriteRule ^(external|css|external/bnet/css)/all.css$ - [L]
RewriteRule ^(css|external|php|scripts|mantisbt|chinese|game|translate|api)/ - [L]
RewriteRule ^e?[0-9]*$ index.php [L]
RewriteRule ^reset=[0-9a-f]{32}$ index.php [L]
RewriteRule ^sim(/[a-z]+)?$ $0.js [L]
RewriteRule ^locale$ scripts/locale.js [L]
RewriteRule ^locale/[a-z][a-z][A-Z][A-Z]$ php/locale.php [L]
RewriteRule ^(core|data|script)$ $1.js [L]
RewriteRule ^(proxy|save|load|search|report|savestash|loadstash|delete|changes|errors|account|priority|activity)$ php/$1.php [L]
RewriteCond %{HTTP_HOST} ^ptr\.d3local\.com$
RewriteRule ^data\.js$ data_ptr.js [L]