-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.htaccess
executable file
·45 lines (31 loc) · 1.09 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
#RewriteBase /
# pass the default character set
# AddDefaultCharset utf-8
AddType application/x-web-app-manifest+json .webapp
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $0 =deploy.sh [OR]
RewriteCond $0 =maintenance.php
RewriteRule ^(.*)$ index.php?/error [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
# Turn on Expires and set default expires to 3 days
ExpiresActive on
ExpiresDefault A0
# Set up caching on media files for 1 month
<FilesMatch "\.(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|ppt)$">
Header set Cache-Control "public"
ExpiresDefault A2419200
</FilesMatch>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
php_value upload_max_filesize 40M