-
Notifications
You must be signed in to change notification settings - Fork 8
/
.htaccess
40 lines (36 loc) · 932 Bytes
/
.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
<Files "install.sql">
Order Allow,Deny
Deny from All
</Files>
AddDefaultCharset utf-8
FileETag MTime Size
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A3600
<FilesMatch \.js$>
ExpiresDefault A43200
</FilesMatch>
<FilesMatch \.css$>
ExpiresDefault A172800
</FilesMatch>
<FilesMatch \.(?:gif|jpe?g|png|ico)$>
ExpiresDefault A604800
</FilesMatch>
<FilesMatch \.php$>
ExpiresActive Off
</FilesMatch>
</IfModule>