photofloat/web/.htaccess

26 lines
747 B
ApacheConf
Raw Normal View History

2011-05-06 02:03:47 +02:00
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json
2011-05-07 02:09:07 +02:00
2011-05-07 14:12:20 +02:00
<FilesMatch "\.(jpg|otf|ico)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
<FilesMatch "\.(css|js)$">
Header set Cache-Control "max-age=5184000, public"
</FilesMatch>
<FilesMatch "index.html">
Header set Cache-Control "max-age=2678400, public"
</FilesMatch>
<FilesMatch "\.json$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>
2011-05-07 02:09:07 +02:00
<FilesMatch "Makefile">
2011-05-06 02:03:47 +02:00
deny from all
</FilesMatch>
2011-05-07 02:09:07 +02:00
RewriteEngine On
RewriteBase /
RewriteRule ^redirect\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /redirect.php [L]