-
Notifications
You must be signed in to change notification settings - Fork 3
/
.htaccess
70 lines (50 loc) · 1.53 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
64
65
66
67
68
69
70
#SetEnv APPLICATION_ENV development
Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php index.html
<IfModule mod_rewrite.c>
#check is mod rewrite is enabled
SetEnv MOD_REWRITE enabled
RewriteEngine on
#RewriteBase /pintastic/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php [L,QSA]
#remove www.
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#RewriteRule ^(.*\.(png|jpg|jpeg|gif))$ index.php?controller=minify&action=index&file_path=$1&ext=$2 [L,NC]
#RewriteRule ^(.*\.(css|js))$ index.php?controller=minify&action=jscss&file_path=$1&ext=$2 [L,NC]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
<FilesMatch "\.(gif|jpe?g|png|js|css)$">
ExpiresDefault "access plus 5604800 seconds"
Header set Cache-Control "public"
</FilesMatch>
<FilesMatch "\.(html)$">
ExpiresDefault "modification plus 5 days"
Header set Cache-Control "public"
</FilesMatch>
#<FilesMatch "\.(php)$">
# Header set Cache-Control "private"
#</FilesMatch>
</ifModule>
<IFModule mod_deflate.c>
<filesmatch "\.(js|css|html|jpg|jpeg|png|gif)$">
SetOutputFilter DEFLATE
</filesmatch>
</IFModule>
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|cache)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<ifModule mod_headers.c>
Header set X-Frame-Options GOFORIT
</ifModule>
#AddType text/cache-manifest .appcache