If you have several versions of the page for different languages or regions, it is important to inform Google about it. This will help search engines direct users to the most suitable version of your site based on a language or region.
Please note that even if you do not take any measures, Google can find alternative versions of the page in other languages, but it is usually better to indicate Google, which pages are designed for different languages and regions.
Examples when it is recommended to indicate alternative pages:
Localized versions of the page are considered duplicates only if the main content of the page is not translated.
There are three ways to report Google about different language or regional versions of the page:
These methods are equivalent in terms of Google, and you can choose the one that is more convenient for you. Although you can use all three methods at the same time, this will usually complicate the management of sites, so it is better to choose one method.
Use the HREFLANG attribute to tell Google about the versions of your content so that the search engine can understand that these pages are localized versions of the same content. Google does not use Hreflang or Lang attribute to determine the page language; Instead, an algorithm is used that defines the language.
Add the elements in the
For each variation of the page, you need to add a set of elements in the
section, one for each page version, including the page itself.An example of syntax for each element:
Where:
The tags should be inside the correctly designed section of the
If your site has pages for the USA, Great Britain and Germany, for example, the following URL contain similar content with small regional differences:
Example in the
section for these pages:<head> <title>Ваш сайт</title> <link rel="alternate" hreflang="en" href="https://example.com/" /> <link rel="alternate" hreflang="en-gb" href="https://example.co.uk/" /> <link rel="alternate" hreflang="de" href="https://example.de/" /> <link rel="alternate" hreflang="x-default" href="https://www.example.com/" /> </head>
You can send the HTTP heading with the GET page to indicate Google about all the language and regional versions of your page. This is useful for pages that are not -documents, for example, PDF files.
Example header:
Link: <https://example.com/page.>; rel="alternate"; hreflang="en", <https://example.de/page.>; rel="alternate"; hreflang="de"
You can use the XML website of the site to inform Google about all language and regional versions of each page. Add the
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:x="http://www.w3.org/1999/x"> <url> <loc>https://example.com/page.</loc> <x:link rel="alternate" hreflang="en" href="https://example.com/page." /> <x:link rel="alternate" hreflang="de" href="https://example.de/page." /> </url> </urlset>
The value of the HREFLANG attribute consists of one or two codes separated by a hyphen. For example, en -us. The first code indicates the language, the second is the region.
To diagnose errors and fix the use of Hreflang, you can use third -party tools:
On issues of website optimization and implementation of SEO methods, you can contact our company through email: info@seo.computer or by WhatsApp: +79202044461.
ID 68