-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.htaccess
executable file
·45 lines (40 loc) · 1.05 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
Options -Indexes -MultiViews +FollowSymLinks
DirectoryIndex index.php index.html
FileETag None
<IfModule mod_php5.c>
php_value post_max_size 8M
php_value upload_max_filesize 8M
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
<FilesMatch "\.(js|css)$">
ExpiresDefault A2592000
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
Header unset Pragma
<FilesMatch "\.(php)$">
#Header set Access-Control-Allow-Origin *
#Header set Access-Control-Allow-Methods "POST, GET, OPTIONS"
#Header set X-Frame-Options "DENY"
Header set Cache-Control "max-age=0, no-store"
Header set P3P CP="STA"
Header unset X-Powered-By
</FilesMatch>
<FilesMatch "\.(js|css)$">
Header set Cache-Control "max-age=2592000"
Header set Accept-Ranges "none"
</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>