-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
37 lines (31 loc) · 1.12 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
# Optional setting that you may want to disable.
### Compress ouput by mod_deflate
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript text/html text/plain text/xml
</IfModule>
### Use expires headers for images
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A604800
ExpiresByType image/jpg A604800
ExpiresByType image/jpeg A604800
ExpiresByType image/png A604800
ExpiresByType application/x-javascript A86400
ExpiresByType application/javascript A86400
ExpiresDefault A604800
</IfModule>
### Change Application enviorment cause load various Config
# production is default
# SetEnv APP_ENV debug
### Application requirement , dont change below !!
DirectoryIndex index.php
### Rewrite rules for Zend Framework
<IfModule mod_rewrite.c>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>