summaryrefslogtreecommitdiff
path: root/http/.htaccess
blob: e4c41921ff13c89ac9bcfe113d6f2840cd1ec809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>