2013-10-05 12:55:03 +02:00
|
|
|
DirectorySlash Off
|
|
|
|
Options -Indexes
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
ErrorDocument 403 /dispatch.php?request=error/http&code=403
|
|
|
|
ErrorDocument 404 /dispatch.php?request=error/http&code=404
|
|
|
|
ErrorDocument 500 /dispatch.php?request=error/http&code=500
|
|
|
|
|
2014-05-14 23:44:48 +02:00
|
|
|
RewriteCond %{DOCUMENT_ROOT}/thumbs/$1.thumb -f
|
|
|
|
RewriteRule ^/?post/(.*)/thumb/?$ /thumbs/$1.thumb
|
|
|
|
RewriteRule ^/?thumbs/(.*).thumb - [L,T=image/jpeg]
|
|
|
|
|
2013-10-05 12:55:03 +02:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteRule ^.*$ /dispatch.php
|
|
|
|
RewriteRule ^/?$ /dispatch.php
|
2013-11-29 23:57:14 +01:00
|
|
|
|
|
|
|
<IfModule mod_deflate.c>
|
2013-11-30 14:20:17 +01:00
|
|
|
AddOutputFilterByType DEFLATE text/javascript
|
2013-11-29 23:57:14 +01:00
|
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
|
|
AddOutputFilterByType DEFLATE text/html
|
|
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
|
|
AddOutputFilterByType DEFLATE text/css
|
|
|
|
AddOutputFilterByType DEFLATE application/xml
|
|
|
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/rss+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
<IfModule mod_mime.c>
|
|
|
|
AddType text/plain .map
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
<IfModule mod_expires.c>
|
|
|
|
ExpiresActive on
|
2013-11-30 14:20:17 +01:00
|
|
|
ExpiresByType image/jpg "access plus 2 years"
|
|
|
|
ExpiresByType image/gif "access plus 2 years"
|
|
|
|
ExpiresByType image/jpg "access plus 2 years"
|
|
|
|
ExpiresByType image/jpeg "access plus 2 years"
|
|
|
|
ExpiresByType image/png "access plus 2 years"
|
2013-11-29 23:57:14 +01:00
|
|
|
|
2013-11-30 14:20:17 +01:00
|
|
|
ExpiresByType image/x-icon "access plus 2 years"
|
|
|
|
ExpiresByType image/icon "access plus 2 years"
|
|
|
|
ExpiresByType application/x-ico "access plus 2 years"
|
|
|
|
ExpiresByType application/ico "access plus 2 years"
|
2013-11-29 23:57:14 +01:00
|
|
|
|
2013-11-30 14:20:17 +01:00
|
|
|
ExpiresByType text/plain "access plus 1 year"
|
|
|
|
ExpiresByType text/css "access plus 1 year"
|
|
|
|
ExpiresByType text/javascript "access plus 1 year"
|
|
|
|
ExpiresByType application/javascript "access plus 1 year"
|
|
|
|
ExpiresByType application/x-javascript "access plus 1 year"
|
2013-11-29 23:57:14 +01:00
|
|
|
</IfModule>
|