I often get asked this question… And tonight on stream I got asked again
How do you redirect traffic to a specific storefront/site based on the visitors country
As I mentioned, this is something that you want to address at the Web Server (e.g. Apache) level, not Magento. Therefore, this is more of a stackexchange.com question.
Anyway, I did a quick Google search and found these articles that relate to what I was talking about. I’ve not read through them properly, but they seem to hold some very useful information on the topic:
- Locale Switching for Region Specific Content in Apache - Taylor Callsen (I like the look of this one. Where the CDN helps determine the visitors country, as you’re letting them do the hard work. Then you use the result to create an Apache rule.)
- Apache – redirect traffic to a different url | JamesCoyle.net Limited
- apache 2.2 - How to redirect to a given page depending on the user locale? - Server Fault
- Apache redirect all to index.php except for existing files and folders - Stack Overflow
Redirecting at the Apache level based on the visitors browser settings is far more efficient and simpler than basing it on IP. Definitely how I would approach this.