photofloat/web/.htaccess

28 lines
829 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$">
2011-10-22 00:29:27 +02:00
Header set Cache-Control "max-age=3600, public"
2011-05-07 14:12:20 +02:00
</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]
2011-05-09 13:32:30 +02:00
RewriteCond %{QUERY_STRING} _escaped_fragment_=
RewriteRule . staticrender.php [L]
2011-05-07 02:09:07 +02:00
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /redirect.php [L]