I have asked this question before and was kindly supplied with the answer by Lucy here:
[
webmasterworld.com...]
However, my gallery software has chnaged and the URl to images has a different format, such as
mywebsite.co.uk/gallery/upload/2013/04/28/20130428141333-edae7e67.jpg
or
mywebsite.co.uk/gallery/upload/2013/04/28/20130428141329-2fda219d.jpg
the structure seems to be based on when i up the images as both these images were uppped on 28/04/2013 around 2.13pm. the part of the url that ends in -edae7e67.jpg is generated by the software.
Im looking to redirect any direct attempt at my images to be sent to my homepage, here is what was produced before by Lucy.
----------
RewriteEngine On
RewriteCond %{HTTP_REFERER} !gallery/index\.php\?level=\w+&id=\d+$ [NC]
RewriteRule /large/.+\.jpg$ http://example.co.uk/index.html [L]
-----------
I would be most grateful for any help in solving this
Thanks :)