B
B
bureauit2019-05-23 08:18:42
Search Engine Optimization
bureauit, 2019-05-23 08:18:42

How to correctly register language versions in sitemap?

There is a website page, it has two languages:

https://getbike.io/ru/info/indonesia/bali/bali_bike_rental_guide
https://getbike.io/en/info/indonesia/bali/bali_bike_rental_guide

There is no page without a language prefix
https://getbike.io/info/indonesia/bali/bali_bike_rental_guide
Этой страницы нет, с нее видимо редирект как-то сразу идет. Хотя код ответа сервера 200...

The sitemap says:
<url>
  <loc>https://getbike.io/info/indonesia/bali/bali_bike_rental_guide</loc>
  <changefreq>daily</changefreq> 
  <priority>0.5</priority>
  <xhtml:link rel="alternate" hreflang="ru" href="https://getbike.io/ru/info/indonesia/bali/bali_bike_rental_guide" />
  <xhtml:link rel="alternate" hreflang="en" href="https://getbike.io/en/info/indonesia/bali/bali_bike_rental_guide" />
</url>

On each page of the language it is written like this
<meta property="og:url" content="https://getbike.io/en/info/indonesia/bali/bali_bike_rental_guide">
<meta property="og:locale" content="en_EN">
<link href="https://getbike.io/ru/info/indonesia/bali/bali_bike_rental_guide" rel="alternate" hreflang="ru">
<link href="https://getbike.io/en/info/indonesia/bali/bali_bike_rental_guide" rel="alternate" hreflang="en">

The problem is that Google indexes the page without the language. And I think something is wrong here.
Perhaps you need to redo the sitemap like this (exclude the version without the language):
<url>
    <loc>https://getbike.io/ru/info/indonesia/bali/bali_bike_rental_guide</loc>
    <xhtml:link rel="alternate" hreflang="ru" href="https://getbike.io/ru/info/indonesia/bali/bali_bike_rental_guide" />
    <xhtml:link rel="alternate" hreflang="en" href="https://getbike.io/en/info/indonesia/bali/bali_bike_rental_guide" />
  </url>
  <url>
    <loc>https://getbike.io/en/info/indonesia/bali/bali_bike_rental_guide</loc>
    <xhtml:link rel="alternate" hreflang="ru" href="https://getbike.io/ru/info/indonesia/bali/bali_bike_rental_guide" />
    <xhtml:link rel="alternate" hreflang="en" href="https://getbike.io/en/info/indonesia/bali/bali_bike_rental_guide" />
  </url>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Gvozdev, 2019-05-23
@arty23_03

Don't worry, Google will glue these pages later, as I understand it, there are 301 redirects, so everything will be fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question