XML Href Lang Setup
-
Hi, currently I have created an XML Href Lang site map for the main .com website. Lets call it projectx.com in this XML href lang file I have indicated that there is also a projectx.co.uk version of the site.
Question: Would the XML HREF LANG sitemap file be uploaded to the root of the main projectx.com only? or would another version need to be uploaded to the projectx.co.uk root too?
Thanks in advance!
-
Martijn's answer is correct. To elaborate: You must include the XML sitemaps on all the sitemaps referenced in that same sitemap. If you don't, Google Search Console will identify return tag errors. Every url in your sitemap that references an equivalent URL on another country's site, must have a correlating "return" URL coming back to the originating pages from tthe hreflang XML sitemap associated with that other country's site.
-
Yes, you would basically create on all sites that you're linking to a XML sitemaps file to make sure Google will know where to find the links and to see where they belong to. Hope that helps!
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 -
Empty href lang
Our site is a multilingual , and its our structure for different lang : for en :domain.com/myPost for Arabic : domain.com/ar/myPost and most of the page and post in main site , have Arabic version also. and we want to generate href lang tag for all pages and posts.(for both language) and its my problem ; if i have a post or page in main site( English ), but the Arabic version not published yet and the href lang in English site pointed to the arabic url page (the page that doesn't exist yet) {arabic version almost will publish after 4-5 days } is it harmful for our SEO ? that href lang point to the URL that doesnt exist?
International SEO | | alishb13730 -
Href=lang
Hi Mozzers, Got a quick question and while it is partially answered in Moz Q&A I have an answer to the contrary on another site so I wanted to get an opinion. I have a UK and US site - I have tagged the home pages with the relevant tags to the US doesn't rank in the UK and vice versa. Do I need to tag every page with each URL at category and product level or is the home page sufficient along with targeting the UK or US in Google Webmaster tools. Any feedback welcome - thanks b
International SEO | | Bush_JSM0 -
Href lang tag - do I need it?
Hey Guys! I have a multi-lingual site in Switzerland serving french and german content. URL structure looks like this: homepage (main) http://www.exmaple.ch/ German http://www.exmaple.ch/de/ French http://www.exmaple.ch/fr/ You can choose a drop down on every page to convert the page into french or german. So there are basically two seperate sites, URL's do not cross over i.e. I have no french pages linking to german pages, it is all pretty good. The default language is german. I have checked in Google.ch/ in both languages french and german for which pages are being served up and they seem all relevant, i.e. on french browser settings when I go to google.ch I see french pages being served and vice versa. My question....Do I need href lang tags? Cheers all!
International SEO | | eLab_London0 -
How to best set up international XML site map?
Hi everyone, I've been searching about a problem, but haven't been able to find an answer. We would like to generate a XML site map for an international web shop. This shop has one domain for Dutch visitors (.nl) and another domain for visitors of other countries (Germany, France, Belgium etc.) (.com). The website on the 2 domains looks the same, has the same template and same pages, but as it is targeted to other countries, the pages are in different languages and the urls are also in different languages (see example below for a category bags). Example Netherlands:
International SEO | | DocdataCommerce
Dutch domain: www.client.nl
Example Dutch bags category page: www.client.nl/tassen Example France:
International domain: www.client.com
Example French bags category page: www.client.com/sacs When a visitor is on the Dutch domain (.nl) which shows the Dutch content, he can switch country to for example France in the country switch and then gets redirected to the other, international .com domain. Also the other way round. Now we want to generate a XML sitemap for these 2 domains. As it is the same site, but on 2 domains, development wants to make 1 sitemap, where we take the Dutch version with Dutch domain as basis and in the alternates we specify the other language versions on the other domain (see example below). <loc>http://www.client.nl/tassen</loc>
<xhtml:link<br>rel="alternate"
hreflang="fr"
href="http://www.client.com/sacs"
/></xhtml:link<br> Is this the best way to do this? Or would we need to make 2 site maps, as it are 2 domains?0 -
What is the proper way to setup hreflang tags on my English and Spanish site?
I have a full English website at http://www.example.com and I have a Spanish version of the website at http://spanish.example.com but only about half of the English pages were translated and exist on the Spanish site. Should I just add a sitemap to both sites with hreflang tags that point to the correct version of the page? Is this a proper way to set this up? I was going to repeat this same process for all of the applicable URLs that exist on both versions of the website (English and Spanish). Is it okay to have hreflang="es" or do I need to have a country code attached as well? There are many Spanish speaking countries and I don't know if I need to list them all out. For example hreflang="es-bo" (Bolivia), hreflang="es-cl" (Chile), hreflang="es-co" (Columbia), etc... Sitemap example for English website URL:
International SEO | | peteboyd
<url><loc>http://www.example.com/</loc></url> Sitemap example for Spanish website URL:
<url><loc>http://spanish.example.com/</loc></url> Thanks in advance for your feedback and help!0 -
Multi-lingual Site (Tags & XML SiteMap Question)
We have two sites that target users in two different countries in different languages in the following manner: Site 1 es.site1.com - Spanish version Site 2 site2.com/francais/.............. Navigation and content are translated into the foreign language from English What is the best way to let Google know about these multi-lingual pages: A. Add the rel="alternate" and hreflang= in the source code for the hunders of pages we have. B. Or is there a tool we can use to crawl and create XML site maps for different language pages. What do we need to do in the XML site map so that Google know that sitemap1.xml for example relates to Spanish as an example many thanks
International SEO | | CeeC-Blogger0 -
Can I add more than one XML sitemap in my Robots.txt File?
I have 3 domains all hosted on the same Magento Enterprise Platform. Each domain targets a different county. .co.uk, .com.au, and .com. Can I add all three sitemaps in my robots.txt file? www.example.com/sitemap.xml www.example.com.au/sitemap.xml www.example.co.uk/sitemap.xml
International SEO | | hfranz0