sitemap for domain with multilanguage site

会有一股神秘感。 提交于 2019-12-10 14:57:33

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/18423624/sitemap-for-domain-with-multilanguage-site

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!