Code:
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(US|CA|CN|RU|BR|JP|PK|SA|ID|BY|IR|IQ)$
RewriteRule ^/*$ http://www.domain.com/$1 [R=301,L]
At the moment if I use the above code, Google doesn't spider our site, it spiders the redirect url (domain.com) because Googlebot has a US based IP.
So the question is..... how do I use this code without redirecting search engine spiders such as Google. I found this advice:
https://www.webmasterworld.com/apache/4276815.htm
Above URL suggests it is best to:
(1) Not redirect search engine spiders
(2) Not redirect the google IP number set
Using both options will be the safest bet but I'm a complete novice so I don't fully understand the advice. Anyone know how we need to edit this code to make it work as required?
Nice little crossword puzzle for ya....