-
Notifications
You must be signed in to change notification settings - Fork 5
/
.htaccess
executable file
·63 lines (57 loc) · 2 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
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
Header unset Last-Modified
</IfModule>
FileETag None
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} 360Spider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} AhrefsBot [OR]
RewriteCond %{HTTP_USER_AGENT} Ezooms [OR]
RewriteCond %{HTTP_USER_AGENT} Yandex [OR]
RewriteCond %{HTTP_USER_AGENT} Mail.RU_Bot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule .* - [F]
RewriteCond %{SCRIPT_NAME} !\.php
RewriteRule ^a(/.*)?$ /ww.incs/api.php?extra=$1 [QSA,L]
RewriteRule ^f/(.*)$ /ww.incs/get-file.php?filename=$1 [L]
RewriteRule ^ww.skins/(.*)$ /ww.incs/get-skin-file.php?filename=$1 [QSA,L]
RewriteRule ^admin[/]*$ /ww.admin [L]
RewriteRule ^ww.cache.*$ /index.php [L]
RewriteRule ^css$ /ww.css/all.php [L]
RewriteRule ^css(/.*)$ /ww.css/all.php?extra=$1 [L]
RewriteRule ^js(/.*)?$ /j/js.php?extra=$1 [L]
RewriteRule ^kfmget/(.*)$ /j/kfm/get.php?id=$1 [L]
RewriteRule ^kfmgetfull/(.*)$ /j/kfm/get.php?uri=$1 [L]
RewriteRule ^([^./]*).rss$ /ww.incs/rss.php?page=$1 [L]
RewriteRule ^favicon.ico$ /i/blank.gif [L]
RewriteRule ^sitemap.xml /ww.incs/sitemap.php [L]
RewriteRule ^_r$ /ww.incs/redirector.php [QSA,L]
RewriteRule ^_s/(.*)$ /ww.incs/short-url.php?s=$1 [L]
RewriteRule ^([^./]{2}[^.&]*)\&(.*)$ /index.php?page=$1&$2 [QSA,L]
RewriteRule ^([^./]{2}[^.]*)$ /index.php?page=$1 [QSA,L]
RewriteRule ^.svn(.*) /index.php [L]
ErrorDocument 404 /ww.incs/404.php
<Files archives>
ForceType application/x-httpd-php
</Files>
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary
<IfModule expires_module>
ExpiresActive On
ExpiresDefault A18000
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType text/css A2592000
</IfModule>
AddCharset utf-8 .js
AddCharset utf-8 .php