WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site which is based in US (ex. www.example.com). We've been tasked to create a UK/GB version of the site which has it's own domain (ex. www.example.co.uk), but shares the same common pages/posts/backend. About 75% of the pages are the same on both versions but there will be a few sections (like About and Contact) where they are different to account for regional differences.


US site (www.example.com) has 4 Pages:

  • Home
  • About
  • Services
  • Contact

UK Site (www.example.co.uk) also has 3 pages (2 different, 1 the same)

  • Home (The same as US, but the URL should be www.example.co.uk)
  • About (Different content, the URL should be www.example.co.uk/about)
  • Services (The same as US, but URL should be www.example.co.uk/services)
  • Contact (Different content, the URL should be www.example.co.uk/contact)

How do I go about setting up the UK/GB version of the site which use the same backend and most of the same content from the base site, but has a few page differences and different domain?

share|improve this question

You may be able to use WordPress MU Domain Mapping Plugin:


But, isn't this a bad idea from a search engine perspective? Multiple domains each with the same content?

share|improve this answer
Yea, the SEO thing is a problem, but I can't think of a better solution. The UK needs it's own regionalized site, but has 95% of the same content. maybe someone else might have a better solution – J Lee May 22 '11 at 20:16

This is just a suggestion and I'm not sure if it would work but how about this:

Use a plugin like http://wpml.org/

.com points to en_US language and .co.uk points to en_GB language. So for pages where you need a UK and US versions you just create translations for those posts/pages

share|improve this answer
Also WPML can be got free before it became premium plugin here: wordpress.org/extend/plugins/sitepress-multilingual-cms although it might not work with the latest version of wordpress – Brady May 17 '11 at 16:09
Does WPML have URL routing? I went through the plugin, but it didn't seem to have any configuration options for that – J Lee May 17 '11 at 23:45

Why don't you decide upon echo $_SERVER['HTTP_HOST']; (and else) what content/nav_menu you want to display?

share|improve this answer
Can you elaborate on this? – J Lee May 22 '11 at 20:22
I guess this [1] link will tell you most. Simply do if ( $_SERVER['whatever'] ) : /* do stuff */ endif; [1] php.net/manual/de/reserved.variables.server.php – kaiser May 22 '11 at 20:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.