forked from abydahana/dwitri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
48 lines (43 loc) · 1.45 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
Options All -Indexes
<IfModule pagespeed_module>
ModPagespeed off
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
# Uncomment this parameter below to force WWW
# RewriteCond %{HTTP_HOST} !^www\.
# RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /404.php
</IfModule>
<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access 2 month"
ExpiresByType image/gif "access 2 month"
ExpiresByType image/jpeg "access 2 month"
ExpiresByType image/png "access 2 month"
ExpiresByType text/css "access plus 20 minutes"
ExpiresByType application/x-javascript "access plus 20 minutes"
ExpiresByType text/javascript "access plus 20 minutes"
ExpiresByType application/javascript "access plus 20 minutes"
ExpiresByType image/x-icon "access plus 20 minutes"
ExpiresByType image/icon "access plus 20 minutes"
ExpiresByType application/x-ico "access plus 20 minutes"
ExpiresByType application/ico "access plus 20 minutes"
</IfModule>