-
Notifications
You must be signed in to change notification settings - Fork 158
/
.htaccess
executable file
·54 lines (42 loc) · 1.27 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
AddDefaultCharset UTF-8
DirectoryIndex index.html index.htm index.php default.html
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
ReWriteCond %{REQUEST_URI} pda$
RewriteRule .* /popup/pda.html [R,L]
ReWriteCond %{REQUEST_URI} ^/api/
RewriteRule .* /api.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_URI} \.html$
RewriteRule .* /nf.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_URI} /module/app_mediabrowser\..*$
RewriteRule .* /nf.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_URI} \.xml$
RewriteRule .* /nf.php
</IfModule>
<FILES config.php>
deny from all
</FILES>
<FILES debmes.txt>
deny from all
</FILES>
<FilesMatch ".(htaccess|htpasswd|ini|phps|fla|sql|log|sh|py)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<IfModule mod_expires.c>
<FilesMatch \.(gif|png|jpg|jpeg|ogg|mp4|mkv|flv|swf|wmv|asf|asx|wma|wax|wmx|wm)$>
ExpiresDefault "access plus 7 day"
</FilesMatch>
ExpiresActive on
ExpiresByType image/jpeg "access plus 7 day"
ExpiresByType image/gif "access plus 7 day"
ExpiresByType image/png "access plus 7 day"
</IfModule>