This is a listing of the local Apache .htaccess file. It is provided in the event that someone may find it useful or interesting.
# Default home page
DirectoryIndex index.shtml index.html index.htm
# Redirect permanently deleted pages
Redirect gone /caving/ggentrances.kmz
Redirect gone /caving/ggentrances.kml
Redirect gone /matthews.shtml
Redirect gone /hebdenpo/index.htm
Redirect gone /software/hitcounter.shtml
Redirect gone /software/hotkeys.shtml
Redirect gone /software/openpopup.shtml
Redirect gone /software/robottrap.shtml
Redirect gone /formtest.cgi
Redirect gone /index.php
Redirect gone /software/index.php
# Redirect historical references
Redirect permanent /index.htm http://braemoor.co.uk/index.shtml
Redirect permanent /robotreport.shtml http://braemoor.co.uk/robotreport.php
Redirect permanent /cavingtrip/index.htm http://braemoor.co.uk/caving/index.shtml
Redirect permanent /cavingtrip/route16.htm http://braemoor.co.uk/caving/route16.shtml
Redirect permanent /cavingtrip/stile.shtml http://braemoor.co.uk/caving/stile2006.shtml
Redirect permanent /cavingtrip http://braemoor.co.uk/caving
Redirect permanent /miscellaneous/index.htm http://braemoor.co.uk/miscellaneous/index.shtml
Redirect permanent /miscellaneous/meerstones/index.htm http://braemoor.co.uk/miscellaneous/meerstones/index.shtml
Redirect permanent /chartreuse/index.htm http://braemoor.co.uk/chartreuse/index.shtml
Redirect permanent /software/passwords.shtml http://braemoor.co.uk/software/passwords.php
Redirect permanent /chartreuse/LAlpe http://braemoor.co.uk/chartreuse/lalpe
# Disallow browsing of directories
Options -Indexes
# File not found page
ErrorDocument 404 /error404.html
# Start of URL rewriting code
RewriteEngine on
# Hot linking disallowed in general
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|zip)$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !braemoor\.co\.uk [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !ukcaving\.com [NC]
RewriteCond %{HTTP_REFERER} !translate [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule (.*) /index.shtml [R,NC,L]
# End hotlinked images
# Deny access to sites who have repeatedly broken the robot rules (now automatically updated)
Order Allow,Deny
Allow from All
Deny from 173.227.230.236
Deny from 38.100.21.19
Deny from 109.123.117.146
Deny from 173.246.100.192
Deny from 173.225.17.50
Deny from 217.43.48.121
Deny from 204.11.219.80