Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sitemap for domain with multilanguage site

Tags:

sitemap

I have www.mysite.it that support 2 language:

mysite.it/it => italian language
mysite.it/en => english language

How can I set up the correct sitemap for the 2 version? Thanks

like image 496
michele Avatar asked Aug 24 '13 22:08

michele


1 Answers

Google have specifically answered this here:

http://googlewebmastercentral.blogspot.co.uk/2012/05/multilingual-and-multinational-site.html

For example:

<url>
  <loc>http://mysite.it/it</loc>
  <xhtml:link rel="alternate" hreflang="en" href="http://mysite.it/en" />
  <xhtml:link rel="alternate" hreflang="it" href="http://mysite.it/it" />
</url>

You will need to know the language or country code in order to be able to categorize other language types

http://webdesign.about.com/od/localization/l/bllanguagecodes.htm

like image 119
jnelson Avatar answered Dec 06 '22 05:12

jnelson