Localization For Two Different Regions/Domains with the Same Language - wordpress

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 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!

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.

Related

Wordpress + WooCommerce + Different Domains/Hoster

I hope to find some help here. Imagine the following scenario:
1. Wordpress WooCommerce website is hosted by HOST-DE under domain scenario.de
2. I want to make the site multilingual (multisite or WPML-Plugin) and every language gets it´s own local hoster (for SEO reasons) and domain. (f.e. HOST-CH and scenario.ch). So the hoster only hosts the domain and get´s content from HOST-DE?
3. Is it possible to get the content from HOST-DE displayed on scenario.ch?
4. If it´s possible, how can I prevent duplicate content?
german content only available under scenario.de and
swiss content only available under scenario.ch
What would you say is best practice?
Thanks in advance!
Jens
To achieve required functionality you need to setup multisite, so each domain will represent each language.

WordPress URL structure logic, how two different urls point to same content?

I have noticed that after rewriting URL in a WordPress site, I can reach the same content using two URLs:
http://example.com/category/article-name-here/primary_key
as well as
http://example.com/category/article-name-here
Both of these URLs will point to exact same content. What is the exact logic behind it, is the article name is in itself unique?
I am creating a startup site which will have the same URL structure. But I cannot have same unique-article-name.
Check this article out:
http://codex.wordpress.org/Using_Permalinks
It says
In the Settings → Permalinks panel (Options → Permalinks before WordPress 2.5), you can choose one of the "common" structures or enter your own in the "Custom structure" field using the structure tags.
Wordpress uses something called a router, which is also part of many frameworks, particularly MVC frameworks, to determine what content to show based on the URL. For example, it might look up something in the database (e.g. old pages that have been renamed), then show the content based on that, or it might only look for a file on the server and then show a 404 page if it doesn't find it.
Basically, look into routing as it relates to PHP frameworks to see how that whole logic works.

How difficult it is to redirect broken links based on keyword matching?

I currently host a blog on blogger under my own domain. The problem with blogger is that one cannot change the URLs. Page URLs contain "/p/", blog post URLs contain date (which don't even have to correspond to the actual publication date). If at some point I were to move to a self hosted solution and change the URL structure to something more user friendly, how would I redirect the broken links to new URLs, based on extracting the keywords from the old link? Does ASP.NET MVC offer an easy way to implement that?
I ask because I would like to stay with blogger for a little more, but wouldn't like to pay the price in the future.
Check out IIS Url Rewrite: http://www.iis.net/download/urlrewrite

Is this possible to give different links for the same wordpress blog?

I have developed a site using wordpress. I have two main links in the site e.g. www.mysite.com/siteone and www.mysite.com/sitetwo and I have managed only one blog contents. Now what I need to do is that I want to link the same blog with different link like this:
www.mysite.com/siteone/blog and www.mysite.com/sitetwo/blog and also need to have same content for links www.mysite.com/siteone/blog-1 and www.mysite.com/sitetwo/blog-1. Is it possible to do so, if yes then how to do that? If not then what can I do for that?
Thanks in advance
From the SEO perspective, it's wise to use canonical tag. This tag was a new construct designed explicitly for purposes of identifying and
dealing with duplicate content. Implementation is very simple and looks like this:
<link rel="canonical" href="http://www.yoursite.org/blog" />
This tag is meant to tell Yahoo!, Bing, and Google that the page in question should be treated
as though it were a copy of the URL http://www.yoursite.org/blog and that all of the link and
content metrics the engines apply should technically flow back to that URL.
The canonical URL tag attribute is similar in many ways to a 301 redirect from an SEO
perspective. In essence, you’re telling the engines that multiple pages should be considered as
one (which a 301 does), without actually redirecting visitors to the new URL (often saving
your development staff trouble).
link
The "home" link in a WordPress installation is determined by an option in the database called siteurl, so in theory you'll just have to use the same database on both blogs and override the siteurl on the two to make it seem like two different websites.
A good way to start from is define a constant in your wp-config.php, which should be different for both websites:
define( 'MY_SITE_URL', 'http://yoursite.com/siteone/blog' );
And then write a single-line plugin that would simply add a filter to the get_option call for siteurl. Something like this:
add_filter( 'option_siteurl', create_function( '$value', 'return MY_SITE_URL;' ) );
That's only the start, and if that works for you you'll have to then rumble around your wp-content directory to make sure they are in sync for both websites, i.e. after uploading an image to one blog you'll need to copy the file into the other one.
I did manage to get two different websites working under one WordPress installation using two different databases, but having two WordPress installations working line one site under two different domains, that's tricky ;)
~ K

WordPress - creating microsites

I have never used WordPress before but it seems to be the best package for user content sites.
I need to have a main site which has its own content but also be able to spawn microsites for a particular event.
These microsites will have around 10 pages and will use the same template and will need to have their content changeable.
In terms of url it would probably look a bit like this
main site - www.blog-x.com
microsite - www.blog-x.com/march-meetup/join
microsite page - www.blog-x.com/march-meetup/contact
Is this possible with WordPress ?
Thanks, Alex
If you by "use the same template" mean that the "microsites" should use the same layout and look like the main site, then see Shelly's answer above.
However, if you mean that you want these "microsites" to have different templates (but that the microsites' pages should use the same template), you're looking for the multi-site feature of WordPress. It will allow you to create new blogs (sites) in either subdirectories (blog-x.com/march-meetup) or on subdomains (march-meetup.blog-x.com). See WordPress Codex: Create A Network for details.
What you're talking about is simply adding Pages - not creating microsites. To get the URLs you want, all you'd have to do is create a new Page. (or even better, just create a category for each section, and post the relevant info to that category).
In other words, yes, it'll do what you want - but calling it a "microsite" is a misnomer.

Resources