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
-
Hi there,
There's much more you can do:
- Link all of your language versions using a crawlable language menu. Like this Google will be able to initially crawl and index these versions.
- Create a Google Webmaster Tools profile for each one of your language versions independently, like this you will be able to generate a specific XML for each (besides tracking each one of them much more easily), and if they are not only language targeted but also, country targeted, you can also geolocate them through GWT too.
- Add to each specific XML sitemap the hreflang annotations referring to the language of each one of your websites as specified here. To help you with this you can use this MediaFlow tool.
- Add the hreflang annotations in the HTML too, in the head section of the HTML of each one of your different pages, as specified here.
The more of these you do, the easier will be for Google to identify that these new version of your sites are targeting these additional languages.
Thanks!
-
Hi, you can use xenu (which is free) or screaming frog if you have the license. They're both great crawling tools.
Then the most difficult part is the association among all the different urls of each language. If you have any pattern which may help associate those pages you're done.
Example:
EN: www.domain.com/page/node-123
ES: www.domain.com/pagina/nodo-123etc etc.
In that sense with excel you can easily isolate the id of each page and build the xml with functions, since the XMl is pretty straightforward:
="<url><loc>"&URL&"</loc><xhtml:link < strong="">rel="alternate"** hreflang="de"**** href="""&GERMAN URL&""" />****<xhtml:link< strong=""> rel="alternate"**** hreflang="es"**** href="""&SPANISH URL&""" /></xhtml:link<></xhtml:link <>**</url>"
-
Hi Mememax,
Many thanks for the response.
Just so that I am super clear, which site map producing software would you recommend where I could specify such a command to be added for a site map for a specific directory or sub-domain.
To me, the Google article seems to be suggesting that the hreflang commend needs to be added to each url in the site-map, and we have hundreds if not thousands.
Best
-
Hi Hola (sorry for the redundancy ), if adding the hreflang in your headers is too tricky and slows your page you may use the tag in the xml sitemap as you correctly said. In this article you have examples on how your sitemap should look like to have google fully understand it. You have to set up a standard language (in the article the base is english) and then add tags to tell google which is each language focused on. If your spanish language is focused to any spanish version you can just add es if your spanish version is focused to Spain you'll have to specify es-ES or es-MX if it's focused on mexico. Hope this 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
-
International SEO & redirects - do these solutions make sense?
I’m currently working on SEO for an international website with subdirectories set up for each international version. The site is has never had any SEO previously and is having a lot of indexing and visibility issues. Also geotargeting seems very off in search results. I’ve diagnosed various issues and want to check my assumptions and solutions below make sense... The root domain uses a 302 redirect to display content from the /en-GB page. (302 redirects seem to be a default language fallback setting configured in the CMS) and they’re used for most key pages. I’m concerned these redirects are contributing to a lot of the issues with incorrect indexing. The en-GB is the default language version of the site. So far, the en-GB has been set as the canonical version too. Both the root domain and this subdirectory URL display the same content. (en-US is also a near duplicate page). All other international homepages appear only on their subfolder URL. Various SEO tools have been showing redirect loops (caused by language changing parameter versions of URLs being crawled that don’t have redirects on them) and issues with hreflang and canonicals. I believe the hreflang tags and canonicals have been ignored due to relative URLs being used for each, as search results don’t always contain the desired versions of the URLs (in terms of regional version and preferred canonical versions). My questions are: Could these 302 redirects be conflicting with hreflang tags? If so, I’m thinking they should be removed (if not made 301s). GSC doesn’t like the fact these are on key pages, as redirected pages are listed in the sitemap. Will changing hreflang tags and canonical tags to absolute URLs possibly be enough to fix these issues from what you can tell? (Or will redirects need to go too?) Is the en-GB correctly set as the canonical when the root domain is also accessible, indexed and using this page’s content within the CMS too? (I feel like the root domain should be the canonical version, but not sure that works together with other language version subfolders or with a redirect in place from root to subfolder). As an extra point to the last question, GSC has recently chosen the root domain as the canonical (despite en-GB being set as user preference) and is now choosing to deindex some international versions of the homepage as a result. Hoping that getting the hreflang tags fixed and possibly redirects removed should correct this ASAP. But perhaps this also confirms en-GB should be the canonical and marked X-default too. I hope that all makes sense and sorry it’s a small collection of related questions. Really appreciate any replies.
International SEO | | MMcCalden0 -
What will happen if i manually click on my backlinks placed on other sites using vpn will it increase my linking domain as i am using vpn
will the linking domain of my website increases when i manually click on the backlinks of my website using vpn
International SEO | | calvinkj0 -
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!
International SEO | | Iannaude0 -
How to interlink 16 different language versions of site?
I remember that Matt Cutts recommended against interlinking many language versions of a site.
International SEO | | lcourse
Considering that google now also crawls javascript links, what is best way to implement interlinking? I still see otherwhise extremely well optimized large sites interlinking to more than 10 different language versions e.g. zalando.de, but also booking.com (even though here on same domain). Currently we have an expandable css dropdown in the footer interlinking 16 different language versions with different TLD. Would you be concerned? What would you suggest how to interlink domains (for user link would be useful)?0 -
Multi-Country Hosting
Hi all
International SEO | | yousayjump
I have read a few post that are similar to mine on this forum but still wanted to ask my specific question. We have a .com domain hosted on a dedicated server in the UK for our main website which takes online bookings and payments. We have purchased the following TLD's of our domain name:
.it, .es, .ch, .fr, .es, .at We essentially want to create a satellite site on each domain where the idea is that users in those countries will find our satellite sites via organic search engine results when searching for the information we sell. Due to the nature of our infrastructure, each satellite site will connect to the mysql database on the UK site to drawn down its text content. This is where the main CMS is located. I understand the following are important from an SEO point of view for our satellite sites: Hosting in the country we wish to target
Geographical targeting via WMT
Local addresses and telephone numbers on the site
Correct lang=" " tag in the source code
Content presented in the correct language (goes without saying really) Can you advise on any other considerations? Many Thanks Kris0 -
Links metrics & rel="alternate" hreflang="x"
Bonjour! If with rel="alternate" hreflang="x" we can indicate to Google that an URL have translated equivalents of a page, are the links metrics splited between all pages or Google considers all the pages as only one? Thanks! Maxime
International SEO | | Maxoulala0 -
Using Javascript to alter ONE or TWO keywords in International Site
Hi, What is the best way to target a language that has slight variations in it without actually targetting specific countries? Scenario: Ecommerce site that sells mobile phones in Spanish, initially created to target Spanish from Spain. We call a mobile phone a "movil" Now we want to target LatinAmerican users, which also use Spanish with variations, the most notable being mobile phone called "celular". We don't want to create specific sites via new ccTLDs, nor subdomains, no directories for each new country, and we want to avoid having two sites - one for spain, one for latinamerica- given that the only major difference is we say MOVIL in spain and CELULAR in LatinAmerica. What is Googles take if we simply decide to modify THAT specific keyword in each page where it is mentioned? Either by: a) Server based. IP Detect. that is, render the page with either one or the other term b) Javascript based. i.e. Have BOTH terms on all pages but using Javascript show/hide according to user preferences. c) Display the keywords with different font sizes/emphasis, depending on the visitor. Any ideas?
International SEO | | doctorSIM0 -
SEO Audit "Hybrid Site"
Hi everyone! I'm trying to analyze a website which is regional in scope. The way the site for every market has been build out is like this : http://subdomain.rootdomain.com/market | http://asiapacific.thisismybrandname.com/ph OR http://subdomain.rootdomain.com/language | http://asiapacific.thisismybrandname.com/en Since this is the first time I'm trying to work on these kinds of sites, I would want to ask for any guidance / tips on how to do about SEO site and technical audit. FYI, the owner of the sites is not giving me access / data to their webmaster account nor their analytics tracking tool. Thanks everyone! Steve
International SEO | | sjcbayona-412180