Suggest you google for .htaccess comments. A hash symbol should work.
Found http://perishablepress.com/stupid-htaccess-tricks/ and indeed # precedes a comment on a line by line basis.
I note this statement in that URL:
"As a configuration file, .htaccess is very powerful. Even the slightest syntax error (like a missing space) can result in severe server malfunction."
So the conclusion is that there is a very tiny error in the .htaccess file which stops the file working as desired when a file name is used that doesn't exist. It is going to be fun trying to find that error! If we have a sharp eyed detective reading this, can you see why placing the comment at the top causes the issue stated.
# Version dated 16th November 2012
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/file1.jpg$ [OR]
RewriteCond %{REQUEST_URI} !^/file2.jpg$ [OR]
RewriteCond %{REQUEST_URI} !^/file3.jpg$
RewriteCond %{HTTP_REFERER} !^http://lorage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://lorage.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lorage.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lorage.co.uk$ [NC]
RewriteRule .*\.(jpg|js|jpeg|gif|bmp|png)$ - [F,NC]
Options -Indexes



Pages in this thread:
Print Thread
