-
Notifications
You must be signed in to change notification settings - Fork 8
/
.htaccess
38 lines (35 loc) · 1 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
<FilesMatch "\.cfg$">
deny from all
</FilesMatch>
<FilesMatch "\.epi$">
deny from all
</FilesMatch>
<FilesMatch "\.html$">
deny from all
</FilesMatch>
<FilesMatch "\.xml$">
deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L,QSA]
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 7 days"
<FilesMatch "\.(css|jpg|jpeg|png|gif|js)$">
</FilesMatch>
Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml te$
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>