Hi guys!
One of my clients is hosted here and we have unique trouble with his mod_rewrite. He had these string in htaccess and they worked fine:
RewriteCond %{HTTP_REFERER} ^http://.refererdomain.com. [NC]
RewriteRule ^.* http://www.targetdomain.com [R,L]
But after adding one more condition:
RewriteCond %{HTTP_REFERER} ^http://.refererdomain.com. [NC]
RewriteCond %{REQUEST_URI} !^.*jpg|.gif [NC]
RewriteRule ^. http://www.targetdomain.com [R,L]
this new condition doesn’t work however it works on all other hostings normally(doesn’t redirect requests to images) and rule acts just as before(redirect all requests).
Can you tell me what’s wrong with it or repair your mod_rewrite please.