Serving up a different site to different countries

amateursurgeon

Hot Metal and Methedrine
Apr 2, 2007
3,855
124
0
The Uncanny Valley
I run a Wordpress-based ecommerce site, for which we want to launch special offers which are only available outside the UK.

We don't want our competitors seeing what we're up to easily (they're not hugely tech-savvy), so I was thinking of setting up two separate wordpress installs, one UK and one not-UK, and serving them up depending on IP address of visitor.

Anyone done something similar to this? How easy/tough is it? I'm guessing .htaccess might be involved?
 


Read up on geoiplocation. You can use .htaccess or just create a simple redirect using whatever language you are comfortable with.
 
.htaccess will be helpful if you know which countries or IP's you want to redirect in advance...then you can use their IP country codes, or IP's, to add in a 'Rewrite' in the .htaccess file

but either way you're going to need some form of geoIP script for true automation...or you'll be doing a lot of manual work yourself