Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_referer} ^http://(www\.)?example\.com/ [NC]
RewriteCond %{HTTP_referer} ^http://subdomain\.example\.com/
RewriteRule .* [mysite.com...] [R,L]
I have not been able to test the subdomain rewrite condition but the domain one does the redirect but gives the following error:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
From what I've read it is probably looping? I have SEF urls enabled through joomla, not sure it matters or not. I real have no knowledge of this but have always found solutions with google. Any help would be great and since this is my first post thanks for all the help to even get me to this point, especially jd01, and jdMorgan.
Thanks
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www\.)?referrer\.com [NC[b],OR[/b]]
RewriteCond %{HTTP_REFERER} ^http://subdomain\.referrer\.com
RewriteRule [b]!^article/[/b] http://www.example.com/article/ [R=302,L]
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*referrer\.com [NC]