Logo gif 1
WebCoreLab

WebCoreLabWebCoreLab

  • Terms
  • Privacy
  • SUPPORT
  • ABOUT US
  • CONTACTS

WebCoreLabWebCoreLab

  • WEBSITE DEVELOPMENT
    • CATALOG
    • DIGITAL COMPLEX
    • LANDING PAGE
    • CUSTOM WEBSITE
    • ONLINE SHOP
    • PROMO SITE
  • DIGITAL MARKETING
    • CONTEXT ADVERTISING
    • SMM
      • Facebook
      • Instagram
      • Youtube
      • LinkedIn
      • Pinterest
      • Google+
      • Twitter
  • LOCAL MARKETING
    • CREATION AND OPTIMIZATION
    • WORKING WITH BUSINESS LISTINGS
    • DAILY SUPPORT
  • SEMANTIC CORE
    • Audit of the Semantic Core
  • ORGANIC SEO
    • Development of the semantic core
    • Analysis of the reference mass
    • Site Audit
    • Usability Audit
    • SEO optimization of the site at the development stage
    • Site output from the FILTERS OF GOOGLE
  • DEVELOPMENT
    • Custom CRM for Enterprise Company
    • DEVELOPMENT OF MOBILE APPLICATIONS
      • Android Apps Development
      • iOS apps Developing
  • UX DESIGN
  • WEB-DESIGN
    • Online Store Design
    • Individual Site Design
    • Corporate Site Design
    • Landing Page Design
    • Adaptive Design
    • Website redesign
CONTACT
  • Home
  • News
  • News
  • Errors in the hreflang attributes: what they are and how to fix them

Errors in the hreflang attributes: what they are and how to fix them

Multilanguage
Thursday, 25 April 2019 / Published in News

Errors in the hreflang attributes: what they are and how to fix them

Problems with hreflang are mainly caused by typos, the use of incorrect codes and non-existent links. If there are errors, the search robot ignores this attribute.

Common errors in the hreflang attribute

      • Wrong format. The first is the language code and only then the region code. To determine the code, you must use the ISO 639-1 language and regional ISO 3166-1 Alpha 2 standards. Before introducing an attribute, it is important to verify that the format of the link meets the specified standards.

For example, you need to create a page for English-speaking citizens living in the United States. It will be correct to use the format “en-us”. For English-speaking citizens from the UK, the correct sequence is “en-gb”, but not “en-uk”. According to the rules for 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 only the language so that the page is given out to people who speak a specific language but are located anywhere in the world.

      • Separate the language and region using a dash or underscore. The only correct option involves the use of a hyphen. For example, “en-us” is correct, and “fr_uk” is wrong.
      • Conflicts in attribute code. Configuring hreflang means using a single page for one language. In other words, a single language version corresponds to a single URL in the code. Multiple pages can not be written in the same language. In the example, the English version is used for all pages. This is mistake:
    1. 15550612593FR4Qg9
      • Typos in letters. For example, instead of “fr” – France is used “fi” – Finland. The content on the page is written in French. This page is not indexed by the search engine. To avoid such errors, use the hreflang tag generator.
      • Attributes hreflang with errors in the links:
      1. on pages that don’t exist. Clicking on the URL gives an error 4xx or 5xx;
      2. with a shortage of a specific hreflang element. If the language version exists, but the attribute for it is not created;
      3. with redirect to another page. In this case, the second URL is not indexed;
      4. without full indication of its components. These are the so-called relative links with the missing first part.

        Неправильно: /catalog1/file1.html

        Правильно: http://site.ru/catalog1/file1.html


      • No backlinks. Problems with hreflang occur when there are no returnable supporting references to the attribute. If page 1 refers to page 2, on page 2 there should be a back link to page 1.

Any of these errors on a particular page leads to the fact that it will not be indexed by the search robot.

How to find errors in hreflang and fix them?

To detect errors in writing letters, hyphens, and checking the correspondence of languages ​​and regions, it is necessary to revise the attribute code hreflang independently. To determine if a single language version of a single page does not match, use the Screaming Frog service:

1555061260pS6VfHi

What you need to do to prevent errors:

  1. Use absolute links instead of relative ones.
  2. Each time the hreflang attribute is added, check the data for compliance with the standards.
  3. Delete URLs that generate error codes 4xx or 5xx and redirect pages.
  4. Determine what is more important for the site: the language or region of the user. In the first case, do not use the location indication, in the second – indicate the language and country.

Conclusion

Problems with the hreflang attribute are mainly related to:

  1. errors in writing languages ​​and regions according to standards;
  2. the use of non-existent links,
  3. redirects; lack of backlinks to pages with an attribute;
  4. the order of writing the constituent links with hreflang;
  5. 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 correct everything that does not comply with the rules for setting up sites with several language versions.

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X

Like this:

Like Loading...
  • Tweet
Tagged under: SEO, Site audit, technical seo

What you can read next

How to become the best SEO company in 2019: SEO strategy
How to become the best SEO company in 2019: SEO strategy
Comprehensive site audit by web agency Webcorelab
Comprehensive site audit by web agency Webcorelab
8 Ways to avoid common YouTube video marketing mistakes
8 Ways to avoid common YouTube video marketing mistakes

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Comments

    Recent Posts

    • Magento vs nopCommerce: 2026 Platform Comparison

      Blog · AI & Marketing · April 23, 2026 Mage...
    • Mercenary vs Steward: Building a Marketing Team

      Blog · AI & Marketing · April 23, 2026 Merc...
    • How to Make Your Alexa Skill Discoverable

      Blog · Voice & Product Marketing · April 2...
    • Chatbot Flow Diagram: The Ultimate Building Guide

      Blog · AI & Marketing · April 23, 2026 The ...
    • Hospitality AI Chatbots: Why Hotels Bet Big

      Blog · AI & Marketing · April 23, 2026 Why ...
    WebCoreLab
    120 Eglinton East, Suite 500
    Toronto ON M4P1E2, Canada
    +1 (647) 546-5599 +1 (888) 893-1842 (US) +380 97 799-5739 (UA/RU) [email protected] @WebCoreLabUS (Telegram)
    f in x yt tg

    Services

    • Website Development
    • Digital Marketing
    • Local Marketing
    • Organic SEO
    • Semantic Core
    • Development
    • Web Design
    • UX Design

    AI Solutions

    • AI Automation
    • AI Chatbots
    • AI Websites
    • AI Marketing
    • AI SEO & GEO
    • AI Consulting
    • Case Studies

    Company

    • About Us
    • Contacts
    • Support
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
    © 2026 WebCoreLab. All rights reserved. | AI-Powered Digital Agency | Toronto, Canada
     

    Loading Comments...
     

      %d