C
C
Christopher Carter2021-09-30 02:08:30
Create a sitemap
Christopher Carter, 2021-09-30 02:08:30

Do I need to include both language versions of the main pages in the sitemap?

Hello, there is a site example.com. Main page depending on the browser language, etc. redirects either to example.com/ru or to example.com/en. The content there differs only in the text (in English it is translated into English). The more important page is the page in Russian.

What should be indicated in the sitemap in this case? Just example.com? Or both versions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-11-12
@pro100taa

Google help fully covers this issue https://developers.google.com/search/docs/advanced...

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>http://www.example.com/english/page.html</loc>
    <xhtml:link
               rel="alternate"
               hreflang="de"
               href="http://www.example.com/deutsch/page.html"/>
    <xhtml:link
               rel="alternate"
               hreflang="de-ch"
               href="http://www.example.com/schweiz-deutsch/page.html"/>
    <xhtml:link
               rel="alternate"
               hreflang="en"
               href="http://www.example.com/english/page.html"/>
  </url>
  <url>
    <loc>http://www.example.com/deutsch/page.html</loc>
    <xhtml:link
               rel="alternate"
               hreflang="de"
               href="http://www.example.com/deutsch/page.html"/>
    <xhtml:link
               rel="alternate"
               hreflang="de-ch"
               href="http://www.example.com/schweiz-deutsch/page.html"/>
    <xhtml:link
               rel="alternate"
               hreflang="en"
               href="http://www.example.com/english/page.html"/>
  </url>
  <url>
    <loc>http://www.example.com/schweiz-deutsch/page.html</loc>
    <xhtml:link
               rel="alternate"
               hreflang="de"
               href="http://www.example.com/deutsch/page.html"/>
    <xhtml:link
               rel="alternate"
               hreflang="de-ch"
               href="http://www.example.com/schweiz-deutsch/page.html"/>
    <xhtml:link
               rel="alternate"
               hreflang="en"
               href="http://www.example.com/english/page.html"/>
  </url>
</urlset>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question