Use same domain for two websites, depending on customer ip

by Daniel Higueras   Last Updated January 13, 2018 13:04 PM

Here's the scenario I want to know if possible and how:


  • Domain ( at one hosting provider.
  • Two websites, one at and another one at, each at a different hosting provider.


  • When a user enters, depending on the ip location, it will load or It is important that the user sees (masking, not redirecting).
  • So a user from UK would navigate website (which is really and a user from France would navigate website (which is really

So far I have managed to find a "fix" which would consist of loading a small website with an iframe at the hosting, and loading the correspondant website in it. I'm wondering if there's a more elegant solution than this.

Related Questions

URL Domain Forwarding or Masking a Single Page?

Updated August 12, 2015 17:01 PM

A question regarding masking a Wordpress site

Updated June 27, 2017 06:04 AM