Audisto Hreflang Checker

Detect issues with hreflang on your site

The Audisto Crawler identifies common mistakes in hreflang usage. Use this group of reports to keep your hreflang definitions valid.

We also a offer a full featured hreflang analysis tool for deeper insights.

Wrong usage of hreflang links can cause issues with multilingual and multi-region targeting of websites.

Example: Audisto hreflang Check with the hreflang hint reports for the current crawl

Audisto Encoding Check with the Encodimg hint reports for the current crawl

It is crucial to have valid hreflang links, because otherwise a multitude of duplicate content related issues is likely to harm the search engine rankings of your site.

For further information read our in depth hreflang guide.

Here is a list of all specific hints related to usage of hreflang on your website, that can be identified with the help of the Audisto Crawler.

Table Of Content

Hints

Hreflang: Found

Description

The crawler detected <link> tags with an hreflang attribute set.

Example

The following code snippets trigger this hint. All examples are for http://de.example.com/.

<html lang="de">
<head>
    <link href="http://de.example.com/" hreflang="de" rel="alternate">
</head>
</html>
Importance

Hreflang links allow to specify a prefered version of a URL on multilingual and multi-region websites, and help search engines to display the correct version of a URL.

Operating Instruction

Use the “Hreflang: Found" hint report to identify all URLs that contain a hreflang link definition and find out how many URLs on the crawled site have hreflang link definitions.

Hreflang: Language tags in HTML and hreflang self link differ

Description

The crawler detected <link> tags with an hreflang attribute set, and a link to the current URL. However, the languages of the document and the hreflang link differ.

Setting "x-default" as hreflang is accepted and does not trigger this hint.

Example

The following code snippets trigger this hint. All examples are for http://de.example.com/.

First example: Languages are totally different:

<html lang="de">
<head>
    <link href="http://de.example.com/" hreflang="fr" rel="alternate">
</head>
</html>

Second example: Languages differ in region or other aspects, while the main language is the same:

<html lang="de">
<head>
    <link href="http://de.example.com/" hreflang="de-DE" rel="alternate">
</head>
</html>
Importance

The languages of a document and the hreflang link should match. However, differences in region or other aspects may be desired. If hreflang linking is incomplete or erroneous, search engines may discard hreflang related information completely.

Operating Instruction

If the language of hreflang attribute and the language of the document totally differ - like for example "de" and "fr", this should be fixed.

Hreflang: Self link found, but document has no language

Description

A <link>-tag with hreflang-attribute points to current URL, but the document itself has no language set.

Example

Example for http://de.example.com/

<html>
    <head>
        <link href="http://de.example.com/" hreflang="de" rel="alternate">
        <link href="http://en.example.com/" hreflang="en" rel="alternate">
        <link href="http://fr.example.com/" hreflang="fr" rel="alternate">
    </head>
</html>

Correct implementation:

<html lang="de">
    <head>
        <link href="http://de.example.com/" hreflang="de" rel="alternate">
        <link href="http://en.example.com/" hreflang="en" rel="alternate">
        <link href="http://fr.example.com/" hreflang="fr" rel="alternate">
    </head>
</html>
Importance

The languages of a document and the hreflang link should match. If hreflang linking is incomplete or erroneous, search engines may discard hreflang related information completely.

Operating Instruction

Always assign a language to a document, when using hreflang.

Hreflang: Self link missing

Description

While the crawler detected <link> tags with an attribute hreflang set, a link to self was missing. However, a link to the same URL is mandatory.

Example

Example for http://de.example.com/

<head>
    <link href="http://en.example.com/" hreflang="en" rel="alternate">
    <link href="http://fr.example.com/" hreflang="fr" rel="alternate">
</head>

Correct implementation:

<head>
    <link href="http://en.example.com/" hreflang="en" rel="alternate">
    <link href="http://fr.example.com/" hreflang="fr" rel="alternate">
    <link href="http://de.example.com/" hreflang="de" rel="alternate">
</head>
Importance

If hreflang linking is incomplete or has errors, search engines may discard hreflang related information completely. This may lead to inappropriate URLs showing up in the localized search results.

Operating Instruction

Always add a link to self, since it is required. For more details see our guide on hreflang.

Hreflang: URL empty or malformed

Description

The crawler detected <link> tags with a hreflang attribute set. However, the href attribute does contain an empty or malformed URL.

Example

Empty href

<link href="" hreflang="de" rel="alternate">

Malformed href

<link href="htp://de.example.com/" hreflang="de" rel="alternate">
Importance

Malformed or empty href in hreflang links cause hreflang definitions to be invalid. Search engines may discard hreflang related information completely. This may lead to inappropriate URLs showing up in the localized search results.

Operating Instruction

We suggest to check for malformed or empty hreflang href on a regular base.

Hreflang: URL is not absolute

Description

If the hreflang element specifies a URL relative to the current URL, it is flagged with this hint.

This report shows all occurrences of hreflang usage with URLs that are not absolute.

Example

Absolute URL

<link href="http://de.example.com/page.html" hreflang="de" rel="alternate">

Short URL

<link href="page.html" hreflang="de" rel="alternate">

Short URL - root folder relative

<link href="/page.html" hreflang="de" rel="alternate">

Short URL - protocol relative

<link href="//de.example.com/page.html" hreflang="de" rel="alternate">
Importance

Using shortened URLs for hreflang links can lead to several kinds of duplicate content issues:

  • duplicate content issues with different protocol versions
  • duplicate content issues with different domains
  • duplicate content issues with different folders
Operating Instruction

We suggest using absolute URLs for hreflang links.