Help to figure out how to redirect by language/country
Hi everyone,
I am trying to filter out some low converting traffic, so I came accross this line that I can use in my .htaccess
RewriteEngine on
RewriteCond %{ENV:HTTP_ACCEPT_LANGUAGE} !^en
RewriteRule .* http://GoAway.com/ [R]
the problem is that I am already using anti-hotlink RewriteEngine in this form
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*mydomain.com.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|asf|wmv|avi|mpg|mpeg)$ - [F]
Can someone tell me how can these two blocks stay in .htaccess together?
Better yet, if someone know how to filter out unproductive russian and asian traffic, please feel free to educate me. :-)
Thanks in advance.
|