开发者

Localization For Two Different Regions/Domains with the Same Language

I have a Wordpress 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.

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 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 ba开发者_StackOverflowckend 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!


It's also possible to make it differently. For our shops we pretend there's a new domain, but in fact there isn't. This also works for SEO because we do make sure the language tags and such are correct. We replace only a few parts such as a few javascripts and conversion pixels and then we are done. See for example on Keepershandschoenen-shop.be. This site is in fact a clone so we don't need wpml. We don't even need a wordpress, magento or whatever CMS installation...

So then you have the same backend, with .com acting as .co.uk also.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜