ianrenton/website/master/www/.htaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^about-me(/?)$ / [L,R=301]
RewriteRule ^about(/?)$ / [L,R=301]
RewriteRule ^raspberrytank(/?)$ /hardware/raspberry-tank [L,R=301]
RewriteRule ^raspberry-tank(/?)$ /hardware/raspberry-tank [L,R=301]
RewriteRule ^raspberry-tank-build-diary(/?)$ /hardware/raspberry-tank [L,R=301]
RewriteRule ^blog/raspberry-tank-build-diary(/?)$ /hardware/raspberry-tank [L,R=301]
RewriteRule ^blog/tag/raspberry-tank-build-diary(/?)$ /hardware/raspberry-tank [L,R=301]
RewriteRule ^hardware/raspberrytank(/?)$ /hardware/raspberry-tank [L,R=301]
RewriteRule ^quadcopter(/?)$ /hardware/quadcopter [L,R=301]
RewriteRule ^legoturtle(/?)$ /hardware/lego-turtle [L,R=301]
RewriteRule ^hardware/tank-(.*)$ /hardware/raspberry-tank/tank-$1 [L,R=301]
RewriteRule ^hardware/quad-(.*)$ /hardware/quadcopter/quad-$1 [L,R=301]
RewriteRule ^hardware/atp-(.*)$ /hardware/atp/atp-$1 [L,R=301]
RewriteRule ^hardware/usv-01-(.*)$ /hardware/usv-01/usv-01-$1 [L,R=301]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 week"
# your document html
ExpiresByType text/html "access plus 0 seconds"
# data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# rss feed
ExpiresByType application/rss+xml "access plus 1 hour"
# favicon
ExpiresByType image/x-icon "access plus 1 week"
# media: images, video, audio
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# webfonts
ExpiresByType font/truetype "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
# css and javascript
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</IfModule>
On Github License
Files