A
A
Antokha2015-06-12 20:25:53
Google
Antokha, 2015-06-12 20:25:53

How to make a sitemap in multiple languages?

How to make a sitemap in multiple languages?
site in Russian site.ru/ru/
site in English site.ru/en/
and all other pages in two languages.
pages have hreflang
link rel="alternate" hreflang="ru" href=" site.ru/ru "
link rel="alternate" hreflang="ru" href=" site.ru/en "
map

<?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://site.ru/ru/</loc>
    <xhtml:link           
                 rel="alternate"
                 hreflang="en"            
                 href="http://site.ru/en/"
                 />
    <xhtml:link 
                  
                 rel="alternate"
                 hreflang="ru"          
                 href="http://site.ru/ru/"
                 />
      <lastmod>2010-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>1.0</priority>
  </url>
  </urlset>

Yandex doesn't like it, swears at unknown xhtml:link
What should I do? rewrite all links without xhtml ?
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
      <loc>http://site.ru/ru/</loc>
      <lastmod>2010-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>1.0</priority>
   </url>
   <url>
      <loc>http://site.ru/en/</loc>
      <lastmod>2010-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>1.0</priority>
   </url>
</urlset>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
My joy, 2015-06-12
@donalddd

i would do that

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question