49 lines
1.6 KiB
ApacheConf
49 lines
1.6 KiB
ApacheConf
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
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^.*$ /dispatch.php
|
|
RewriteRule ^/?$ /dispatch.php
|
|
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/javascript
|
|
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
|
|
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"
|
|
|
|
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"
|
|
|
|
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"
|
|
</IfModule>
|