Multilingual website - Url problem (sitemap)
-
At this moment our website both uses the language in the url like "en" and localizes the url itself ("books" in english and "boeken" in dutch). Because of the history of making our website multilingual we have a system that takes the browser language for the localization if the url doesn't contain a language like "en".
This means:
- www.test.com/books = browser language
- www.test.com/en/books = english language
- www.test.com/boeken = browser language
- www.test.com/nl/boeken = dutch language
Now for the sitemap this makes it a little troublesome for me because which hreflang is used for which url?
1) The first thing I thought of was using x-default for all urls that get the language of the browser.
<code><url><loc>http://www.test.com/books</loc></url></code>
But as you can see we now got 2 times x-default.
2) Another solution I thought of was just use the localization of the url to determine the language like:
<code><url><loc>http://www.test.com/books</loc></url></code>
But now we got 2 of each language for the same page.
3) The last solution I thought of was removing links without a language in the url (except for the homepage, which will still have an x-default) like:
<code><url><loc>http://www.test.comen/books</loc></url></code>
But for this solution I need to put 301's at pages that are "deleted" and also need to change the system to 301 to the right page. Although the last point isn't really a problem I'm kind of worried that I will lose some of the "seo points" with a 301. (When we changed our domain in the past we had a bad experience with the 301 of our old domain)
What do you think would be the best solution for SEO? Or do you have any other suggestions or solutions I haven't thought of.
-
The best way to go about this is to keep the URLs with the language in the structure. Redirect (301) the ones that don't have it to the ones that do.
However, it sounds like that causes a problem. If the above isn't a possibility, use a canonical from the non-language URL to the one with it. Then do your HREFLANG in sitemaps, and only use the URLs with the language tag in the sitemaps. You can also do the coding on the page, just make sure the HREFLANG tags are not on the non-language pages.
- Example URL: http://www.test.com/boeken would have a canonical tag that points to http://www.test.com/nl/boeken
- Only http://www.test.com/nl/boeken is listed in the sitemaps
- OR Only http://www.test.com/nl/boeken has HREFLANG tags. http://www.test.com/boeken would only have the canonical.
That should solve your problem.
-
From their support page (https://support.google.com/webmasters/answer/189077?hl=en) when you're combining region plus language you'll want to do this:
For example, you may have specific URLs for English speakers in Ireland (en-ie), Canada (en-ca), and Australia (en-au), but want all other English speakers to see your generic English (en) page, and everyone else to see the homepage. In this case you should specify the generic English-language (en) page for searchers in, say, the UK. You can annotate this cluster of pages using a Sitemap file or using HTML link tags like this:
That way you can even have a situation like nl-en or vice versa. I'd use 302s for redirecting based on conditional things like browser settings. Cheers!
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
SEO Strategy for international website with similar content
Hello, If a company is in different countries and has same content in most of the countries does it hurt SEO? For Ex. fibaro.com is the website that I am researching and I have seen the indexed pages to be about 40,000 however there is not much content on it. On further inspection I noticed that for every country the sub folder is different. So for us it will be fibaro.com/us/motion-sensor and for Europe fibaro.com/en/motion-sensor. Now both of these pages have same content on it and the company is in 86 countries so imagine the amount of duplicate content it has. Does anybody have any ideas on what should be an ideal way to approach this? Thanks
International SEO | | Harveyspecter0 -
Multilingual and Canonicalization
Hey there Mozzers, If I have a site that is translated in 5 languages with main language as English ( most pages are only template translated top menu and footer ) is this correct? Right now the main page which is example.com/en is mentioned 3 times in the href code 1st as a canonical later as alternate and 3rd as x default which seems a bit weird. | |
International SEO | | Angelos_Savvaidis
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |0 -
Can multiple hreflang tags point to one URL? International SEO question
Moz, Hi Moz, Can multiple hreflang tags point to a single URL? For example, if I have a Canadian site (www.example.com/ca) that targets French and English speakers can I have the following: or would I use: Any insight would be very helpful and greatly appreciated! Thank you in advance!
International SEO | | DA20131 -
Translating URLs worth it?
My company has content in 23 different languages in 30+ countries. We translate page content but we don't translate URLs. I am trying to figure out whether it would be worth the considerable extra overhead to translate the URLs as well. I'd really appreciate hearing the thoughts of the Moz community. Thanks in advance!
International SEO | | Logi0 -
Is having duplicated content on different domains a problem when using alternate tag, but no canonical?
We will be launching a couple of new language versions. I understand that ccTLD is mostly considered as best option, however I thought that to start with it might be better to launch the new language version first on a subdirectory of our established domain with strong backlink profile as it may rank much better until I can attract some strong links to new ccTLD. I would wait for the pages of new language versions to be indexed on the main domain and then after a month launch the same content paralell on the ccTLD setting up an alternate tag in the main domain pointing to the ccTLD. I would not setup any canonical tag. As I understand google would rank whatever of the 2 versions ranks higher. Should not cause duplicated content issues right?
International SEO | | lcourse
Any thoughts? EDIT:
For clarification. The language we are launching are mostly spoken in several countries. E.g. for Portuguese I would add in main domain an altnernate tag for Brazilian visitors to Brazilian ccTLD, but no alternate tag for Portuguese visitors. For Corean I would add in main domain an alternate tag for visitors in south corea, but not one for visitors in north corea.0 -
Intentional redirect for international visitors to a website
We are doing PPC for a new client, and using Clicktale to improve conversion rates. However, Clicktale won't work because the client does not want international visitors looking at their website (competitive reasons! - yeah don't get me started...). They have a redirect on for all international visitors which points to a "coming soon..." page Are there any SEO implications on traffic in their own country (they currently do rank for terms)? I'd like to go back with a strong case for them removing any international redirect. Thank You
International SEO | | CleverClicks0 -
Website Translation
Hi All, I know its not an SEO question, but....................... Can anyone suggest a few good website translation "widgets" I would like to give those who are not fluent in English and option to choose another language in which to view the page text. Thank You!!!
International SEO | | APICDA0 -
Multilingual newspaper website
Hello all. This is my first post to seomoz. My group is in the process of creating a website for a newspaper client which will have stories in two languages Spanish and English. Basically visitors will receive the Spanish version and have an option to read the story in english. I have never optimized a website for multi-languages/foreign languages. The newspaper is located in the USA so I'm not sure how this is going to work, which is were you come in. They would like to show up in both Google.com and Spanish versions of Google. My questions are: Do I need to worry about ranking for both versions? How should I go about optimizing the website for multiple languages? How do I need to configure my pages to be indexed so duplication is not an issue? (Canonical URL Tag?) Do I need to use special tags besides the news Google news tags for index, etc? I have more questions but as you can see I'm looking for a starting point on how I should apply my knowledge of english only websites to a website that has the same content just in different languages. Any help is appreciated. Thanks.
International SEO | | cubictulsa0