-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
33 lines (29 loc) · 1.02 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
# Error pages
#ErrorDocument 401 http://local/vu2/error?code=401
#ErrorDocument 403 http://webserver/vuframework/error?code=403
#ErrorDocument 404 http://local/vu2/error?code=404
#ErrorDocument 500 http://local/vu2/error?code=500
# No directory indexing
Options -Indexes
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|db|sql|sqlite|cache)$">
order allow,deny
deny from all
</FilesMatch>
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz)$">
Header append Vary: Accept-Encoding
</FilesMatch>
# Cache control
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|bmp|tiff)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt|jpeg|tiff|bmp)$
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule app/ index.php/$1 [L]
</IfModule>
ErrorDocument 500 "<h2>Application error</h2>"