Wrong usage of hreflang?
-
Hello Translate Press,
i just used seranking.com to check my website and i got this message :Multiple language codes for one page
Issue description The hreflang attributes specify multiple language codes for a single URL.For example, hreflang=”en” and hreflang=”de” point to the same URL.This can confuse search engines, because it is unclear in which of the indicated languages the information on the page is presented and which version of the page should be shown to website visitors.
How to fix
Check the pages indicated in the report, remove the unnecessary hreflang attribute or replace the language code with the correct one.No more than one language code can be specified for a single URL, but several regions can be specified for the selected language version, for example, en-us, en-gb, and so on.<link rel="alternate" hreflang="en" /> <link rel="alternate" hreflang="en-GB" />
i guess the fact there is 2 hreflang “en” and “en-GB” for instance is the problem?
+
i got this trouble : Invalid HTML langIssue description
The hreflang attributes specify multiple language codes for a single URL.
For example, hreflang=”en” and hreflang=”de” point to the same URL.
This can confuse search engines, because it is unclear in which of the indicated languages the information on the page is presented and which version of the page should be shown to website visitors.How to fix
Check the pages indicated in the report, remove the unnecessary hreflang attribute or replace the language code with the correct one.
No more than one language code can be specified for a single URL, but several regions can be specified for the selected language version, for example, en-us, en-gb, and so on.i just got this probleme with my german page
maybe that the fact i used “Formal German” ? :<link rel="alternate" hreflang="de-DE-formal" href="https://exemple.com/de/"/>
Thank by advance for your help
- The topic ‘Wrong usage of hreflang?’ is closed to new replies.