External URLs in hreflang sitemap questions
-
I'm currently putting together an international sitemap for a website that has an set up like the following:
example.com/us
example.com/au
example.com/ca
example.co.uk
example.seI'm planning on including the hreflang tags within sitemaps for each domain, to make sure google serves up the right version. However, I'm a bit sceptical about including the non .com domains within the .com sitemap - and the other way round for .co.uk and .se sitemaps.
The way I've been doing it follows the following example:
<url><loc>http://www.example.com/us/</loc></url>
Putting in the .co.uk and .se domains within the .com sitemap just doesn't feel right - is this actually the right way to do it?
Thanks in advance
-
It is the right way to do it
According to this, looks like you should include the <loc>url as well, so add:</loc>
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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
-
href lang questions - please help
Hi I have a few questions about href lang implementation and I was hoping for some guidance / opinions. An international website is using mostly a folder structure, but for some locations it might have standalone sub-domains. Some folders are there to target locations and languages, with others just targeting languages. See the list below: domain.com/es-mx [Language: Spanish - Location: Mexico]
International SEO | | MarkCanning
domain.com/pt-br [Language: Portuguese - Location: Brazil]
domain.com/ja-jp [Language: Japanese - Location: Japan]
domain.com/en-jp [Language: English - Location: Japan]
domain.com/fr-ca [Language: French - Location: Canada]
domain.com/en-ca [Language: English - Location: Canada]
domain.com/en-ie [Language: English - Location: Ireland]
domain.com/ar [Language: Arabic]
domain.com/ph [Language: Tagalog]
domain.com/it [Language: Italian]
domain.com/tr [Language: Turkish]
domain.com/kr [Language: Korean]
domain.com/fr [Language: French]
domain.com/ru [Language: Russian]
domain.com/vn [Language: Vietnamese] domain.in/en [Language: English - Location Indian]
domain.in/hi [Language: Hindi - Location Indian] My questions are: Is href lang sitemap equally as good as the href lang meta tag in terms of effectiveness. I know that the sitemap is easier to maintain and upkeep but i don't know which one is better as google recommends both. How do you mix your listings when some are targeting language and country and others are just targeting language speakers (not tied to any specific country). So take for example in the list above: there would be a general site for french speakers and then one for french speakers in Canada. Thanks for your advise in advance.0 -
GeoIP Redirects & hreflang
Hello, We believe we've had some issues with hreflang tags not remaining validated due to the implementation of geoIP redirects. Previously, if a user clicked a landing page on Google search that was not targeted for their territory, they would instantly be redirected to a sub path that targets their territory using geoIP redirects. We're planning to remove the initial geoIP redirects and have messaging that prompts the user to either stay on the page they've landed on, or be redirected to page that is right for their territory. However, if a user has selected to be redirected to a sub path that is targeted for their territory, they will have a cookie preference set for the IP location they've selected, and will continue to be redirected to their chosen sub path. My question is, will a crawler follow and trigger the geo preference cookie, which could potentially cause complexities in validating hreflang tags and ranking of content for the right market. Thanks.
International SEO | | SEONOW1230 -
Geolocation issue: Google not displaying the correct url in the SERP's
Hello, Im running a multi-country domain with this structure: domain.com/ar/
International SEO | | EstebanCervi
domain.com/mx/
domain.com/cl/
etc I also have: domain.com/int/ for x-default
domain.com/category/ does a 301 redirect through IP geo-location to the correspondent url, example if your IP is from Mexico, then you got redirected to domain.com/mx/category/ hreflang is correct. webmaster tool geo-location is correct. Example of the issue Im facing right now: When users from Chile do a keyword search in Google Chile, the domain ranks well but the URL that appears in the SERP is the /mx/ version, or the /int/ version or any other country version. Other times is the /cl/ version. The same happens for all the users / countries / keywords. I need to understand what Im doing wrong, because Google is not displaying in the SERP's the correct URL version for the country of the user who is doing the search. Thank you so much! I will appreciate your ideas. PS: I think I should try to change the 301 to a 302 redirect, or completely remove those redirects. Any ideas? Suggestions? Thanks!0 -
International SEO & Duplicate Content: ccTLD, hreflang, and relcanonical tags
Hi Everyone, I have a client that has two sites (example.com & example.co.uk) each have the same English content, but no hreflang or rel="canonical" tags in place. Would this be interpreted as duplicate content? They haven't changed the copy to speak to specific regions, but have tried targeting the UK with a ccTLD. I've taken a look at some other comparable question on MOZ like this post - > https://moz.com/community/q/international-hreflang-will-this-handle-duplicate-content where one of the answers says **"If no translation is happening within a geo-targeted site, HREFLANG is not necessary." **If hreflang tags are not necessary, then would I need rel="canonical" to avoid duplicate content? Thanks for taking the time to help a fellow SEO out.
International SEO | | ccox10 -
URL structure of international hotel website
Hai all, Question about URL structure of international hotel website in Amsterdam: hotelcitadel.nl. Some information: - Target group are mainly english speaking guests from UK and US. Besides that guests from the Netherlands and some other countries. - Website in 6 languages. - No geo-targetting; just language targetting with hreflang annotations. Current situation: hotelcitadel.nl = dutch language version and hotelcitadel.nl/en = english language version We are thinking about changing this to: hotelcitadel.nl would become english version and hotelcitadel.nl/nl would become the dutch version. Reason: root domain hotelcitadel.nl has by far the most links,and making the root domain the english version could help the rankings in english speaking countries like UK and US. What do you think, would this be a wise idea? Regards, Maurice
International SEO | | mlehr0 -
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.
International SEO | | Anycoin0 -
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 -
Upper case or/and lower case in rel="alternate" hreflang
Hi Mozzers, I have a question about the rel="alternate" hreflang tag, with an example. When I use two subfolders for two different countries/languages, for instance www.domain.com/nl-nl/ and www.domain.com/nl-en/ (for the English version) and I want to use the rel="alternate" hreflang tag, do I need to follow the ISO standards concerning Uppercase country code and Lowercase language code (en-NL)? Or is it okay to use the Lowercase country and language code (en-nl), since we also use this in the URL of the Subfolder. What does Google prefer? Thanks in advance.
International SEO | | MartijnHoving820