Mobile app version of vmapp.org
Login or Join
Vandalay111

: Which sitemap is better for SEO on a multilangual site? Hy, I have a site with three languages: example.com/hu example.com/en example.com/de I've read that I can add alternate languages in one

@Vandalay111

Posted in: #Seo #Sitemap

Hy,

I have a site with three languages:


example.com/hu
example.com/en
example.com/de


I've read that I can add alternate languages in one sitemap for each pages like that:

<url>
<loc>http://www.example.com/hu/page1/</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://www.example.com/en/page1/"
/>
<xhtml:link
rel="alternate"
hreflang="de"
href="http://www.example.com/de/page1/"
/>




Or I should create multiple sitemaps for each languages and collect them in one sitemap like that:

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.example.com/sitemap_hu.xml</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
<sitemap>
<loc>http://www.example.com/sitemap_en.xml</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
<sitemap>
<loc>http://www.example.com/sitemap_de.xml</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
</sitemapindex>


Which one is better? Or are they all the same?

Thanks,
Dave.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

Go with your first sitemap, since your second example does not tell anything to google that, this is another alternative url on different language. People use second sitemap example, when their sitemap is big and need to divide into sub parts.

First is right, second is wrong for multilangual site.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme