|How-to||– 6 min read|
Errors in hreflang attributes: what are they and how to fix them
Common hreflang attribute errors
For example, you need to create a page for English-speaking citizens living in the United States. Using the "en-us" format is correct. For English-speaking citizens from the UK, the correct sequence is "en-gb," but not "en-uk." According to the rules of setting the attribute, the language must be specified, and the region may be completely absent.
In some links, only the region is found, and this is wrong. It is allowed to use the only language so that the page is displayed to people who speak a specific language, but are located anywhere in the world.
In the example, the English version is used for all pages. This is an error:
- links direct to pages that do not exist. When clicking on the URL, an error 4xx or 5xx is shown;
- lacking a specific hreflang element. If a language version exists, but no attribute has been created for it;
- the ones redirect to another page. In this case, the second URL is not indexed;
- without full indication of their components. We are talking about the so-called relative links with the missing first part.
Incorrect: /catalog1/file1.html Correct: http://site.com/catalog1/file1.html
How to find and fix hreflang errors
What you need to do to prevent errors:
- errors in specifying languages and regions according to the standards;
- using nonexistent links and redirects;
- lack of backlinks to pages with the attribute;
- the order of specifying the component links with the hreflang attribute;
- specifying multiple pages for one language version.
To find the hreflang attributes with errors and fix them, you need to conduct a small audit of the pages and adjust everything that does not comply with the rules for setting up sites with several language versions.
|Run Site Audit|
Speed up your search marketing growth with Serpstat!
Keyword and backlink opportunities, competitors' online strategy, daily rankings and SEO-related issues.
A pack of tools for reducing your time on SEO tasks.
Discover More SEO Tools
Tools for Keywords
Keywords Research Tools – uncover untapped potential in your niche
SERP SEO Tool – the ultimate solution for website optimization
Keyword Difficulty Tool
Stay ahead of the competition and dominate your niche with our keywords difficulty tool
Check Page for SEO
On-page SEO checker – identify technical issues, optimize and drive more traffic to your website
Cases, life hacks, researches, and useful articles
Don’t you have time to follow the news? No worries! Our editor will choose articles that will definitely help you with your work. Join our cozy community :)