Quote:
Originally Posted by klinton
I would like to redirect all french speaking traffic coming to my domain to some site...WITH EXCEPTION for few referers(that traffic wouldn't be redirected)....how to do this ?
thx....
|
try this
Code:
RewriteEngine on
RewriteCond %{HTTP:Accept-Language} (fr) [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?allowsite\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?allowsite\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?allowsite\.com/.*$ [NC]
RewriteRule .* http://www.domain.com/redirect-url [R,L]