Our web store has different sections for different countries.
The website store url is added after the domain name.
For example:
domain.com/us-en
domain.com/ca-en
domain.com/eu-en
We need the htaccess file (or suggest a different method) to direct the visitor to the correct url.
We are on CloudFlare. And Cloudflare passed the IP Geolocation to the HTTP header named "CF-IPCountry"
So the htaccess file needs to be setup as follows.
If country is USA - send visitor to domain.com/us-en/* (append full url)
If country is X (we will need to provide a list of country names) send visitor to domain.com/eu-en
Else, send visitor to domain.com/ca-en
We should also have the ability to exclude an IP address from this so that we can test locally.
It should also be ignored by robots and spiders.
Also be sure that this only happens to the url that the visitor visits. This should not affect images, js, css etc.
For someone that knows what they are doing, this should be simple and quick!
About the recuiterMember since Mar 14, 2020 Balachandran Ve
from Maharashtra, India