hello,
sorry if this forum is unappropiated to post this question and spare my life please, but i just dont understand whats happening with .htaccess in my server, im using the following script in order to prevent the hotlinking of my files
[code]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^[url]http://mydomain.net/.*[/url]$ [NC]
RewriteCond %{HTTP_REFERER} !^[url]http://mydomain.net[/url]$ [NC]
RewriteCond %{HTTP_REFERER} !^[url]http://otheralloweddomain/file/.*[/url]$ [NC]
RewriteCond %{HTTP_REFERER} !^[url]http://otheralloweddomain.com/file[/url]$ [NC]
RewriteRule .*.(gif|htm)$ [url]http://domaintoredirectattemptsto/[/url] [R,NC]
All seems to be in order but it simply doesnt work, actually it does prevent hotlinking but also it prevents my own domain and site from linking my own images, the same with the other referer which is a domain i want to allow the hotlinking.
Any idea about what is wrong with this? i will thank you any help you can provide.
Thanks in advance.