My company has a few different domains, the most simple being a .com to .ca site. How can we create a system that changes the domain based on the users location. For example: if a visitor from the US finds our .ca site on google, how can I redirect them to .com instead?
Thanks!
Maybe using html5 geolocation with google maps api and window.location.replace to redirect could be a solution.
I used this example to get the information from the location here
In php, you can get the location based on the ip.
PHP Example here