For the correct implementation of this method, we need the loc element and tags. These tags indicate alternate language versions, including the current one. If the site has several language versions of the URL, you must use the rel=”alternate” hreflang=”x” attribute in each. For example, you have content in Ukrainian, English and Russian. In this case, the Russian language version of the site must include a link with the attributes rel=”alternate” hreflang=”x” to the English and Ukrainian versions.
They, in turn, should contain similar links pointing to Libya Email List alternative versions. Implementing the hreflang attribute using headers used for pages that are not HTML documents, such as PDF, DOC, etc. files. Here the code will look like this: . Thus, this method often causes more difficulties than benefits. Hreflang and x-default This is a special assignment of the hreflang attribute called x - default, which assumes a universal version of the page.
Users who live in those countries and speak those languages, which are not provided on the site using the hreflang attribute, will be redirected to this page. In the link element, it looks like this: If the location and language of the users do not match the settings, the redirection will take place to the specified URL. When using the HTML attribute rel=”alternate” hreflang, pay attention to possible errors during implementation: be sure to link. For example, if the Russian version of the site has an alternative English version, then the English version must have a link to the Russian version of the site, otherwise the search engine will perceive the page data as duplicates; incorrect specification of codes for language and region.