summaryrefslogtreecommitdiff
path: root/http/.htaccess
blob: bee3a095d0bf9b3db5e8361490adae3cc9dab3e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
php_value display_errors On
php_value display_startup_errors On

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/ [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1/ [L]

ExpiresActive On
ExpiresDefault "access plus 2 hours"
<FilesMatch ".+?\.(?!(jpe?g|png|gif|js|css)$).+">
    Header unset Last-Modified
    Header set Cache-Control "private, max-age=0, no-cache"
</FilesMatch>