I have a WordPress site which is based in US (ex. http://www.example.com). We’ve been tasked to create a UK/GB version of the site which has it’s own domain (ex. http://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.
Example
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 http://www.example.co.uk)
- About (Different content, the URL should be http://www.example.co.uk/about)
- Services (The same as US, but URL should be http://www.example.co.uk/services)
- Contact (Different content, the URL should be http://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?
I’d use WPML plugin, it allows tranlations of posts, pages, categories, menus, and plugins that have language files. It will let your end use login from the same admin area, and then add translations to the existing content.
The tricky bit will be setting it up to work on domain detection, normally it works on a subdomain, or add’s a variable to the end of the URL, like ?lang=uk
But that said it should be possible though with a bit of tinkering to setup something based on the URL. And the documentation is pretty comprehensive. Good luck!