46 lines
1.8 KiB
ApacheConf
46 lines
1.8 KiB
ApacheConf
|
<IfModule mod_rewrite.c>
|
||
|
RewriteEngine On
|
||
|
|
||
|
RewriteRule ^projekte.xml https://toolbox-bodensee.de/feed_projekte.xml
|
||
|
RewriteRule ^f33d.xml https://toolbox-bodensee.de/feed_projekte.xml
|
||
|
RewriteRule ^feed.xml https://toolbox-bodensee.de/feed_blog.xml
|
||
|
|
||
|
### Redirect certain domains to ffbsee.net
|
||
|
RewriteCond %{HTTP_HOST} ^toolbox\.cyber\.yt [NC,OR]
|
||
|
RewriteCond %{HTTP_HOST} ^www\.toolbox-bodensee\.de [NC]
|
||
|
RewriteRule (.*) https://toolbox-bodensee.de/$1 [R=301,L]
|
||
|
</IfModule>
|
||
|
|
||
|
# COMPRESSION WITH MOD_DEFLATE
|
||
|
<IfModule mod_deflate.c>
|
||
|
AddOutputFilterByType DEFLATE image/svg+xml
|
||
|
AddOutputFilterByType DEFLATE text/plain
|
||
|
AddOutputFilterByType DEFLATE text/html
|
||
|
AddOutputFilterByType DEFLATE text/xml
|
||
|
AddOutputFilterByType DEFLATE text/css
|
||
|
AddOutputFilterByType DEFLATE text/javascript
|
||
|
AddOutputFilterByType DEFLATE application/xml
|
||
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||
|
AddOutputFilterByType DEFLATE application/rss+xml
|
||
|
AddOutputFilterByType DEFLATE application/atom_xml
|
||
|
AddOutputFilterByType DEFLATE application/javascript
|
||
|
AddOutputFilterByType DEFLATE application/x-javascript
|
||
|
AddOutputFilterByType DEFLATE application/x-shockwave-flash
|
||
|
</IfModule>
|
||
|
|
||
|
# CACHE-DURATIONS
|
||
|
# turns cache on for 1 month
|
||
|
<IfModule mod_expires.c>
|
||
|
ExpiresActive On
|
||
|
ExpiresByType text/css "access plus 1 month"
|
||
|
ExpiresByType text/javascript "access plus 1 month"
|
||
|
ExpiresByType text/html "access plus 1 hour"
|
||
|
ExpiresByType application/javascript "access plus 1 month"
|
||
|
ExpiresByType image/gif "access plus 1 month"
|
||
|
ExpiresByType image/jpeg "access plus 1 month"
|
||
|
ExpiresByType image/png "access plus 1 month"
|
||
|
ExpiresByType image/svg+xml "access plus 1 month"
|
||
|
ExpiresByType image/x-icon "access plus 1 month"
|
||
|
ExpiresByType application/x-font-woff "access plus 1 month"
|
||
|
</IfModule>
|