summaryrefslogtreecommitdiff
path: root/http/.htaccess
blob: 4e671f35db7022b8e5d954295ac845c88e200fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 10 minutes"
<FilesMatch "\.(jpe?g|png|gif|js|css)$">
    ExpiresDefault "access plus 2 hours"
</FilesMatch>