top of page
  • Writer's pictureBrent Payne

Disallowed URL has incoming hreflang

An identified URL has been specified as an alternate for hreflang, but it is excluded by the robots.txt file.

Why is this important?

Search engines use hreflang tags as directives for indexing. If a page in English points to a French equivalent via hreflang, the search engine is asked to index both versions for the relevant language audiences.

Should the English version be restricted by the robots.txt file, search engines would be unable to crawl its content. Although they can still index the URL, they won’t be able to detect the alternate URLs or confirm the reciprocal hreflang tags, which are crucial for the correct functioning of hreflang.

What does the Optimization check?

The Optimization will activate for any URL that is an hreflang alternate and has been disallowed.

Note: This Optimization resembles another Optimization: "Has outgoing hreflang annotations to disallowed URLs". The key difference lies in whether the focus is on the target (incoming hreflang) or the source (outgoing hreflang) of the hreflang annotation.

Examples that trigger this Optimization:

Imagine the following URL:

This Optimization would trigger if the URL was disallowed by robots.txt and if said URL appears as an hreflang alternate on another page or self-references with an hreflang annotation.

<link rel="alternate" href="" hreflang="en-us" />

<link rel="alternate" href="" hreflang="fr-fr" />

How do you resolve this issue?

A discrepancy like this can be challenging to troubleshoot as it's unclear whether the hreflang is incorrect or the robots.txt file needs to be updated.

Determining the intended hreflang URL will require a close examination. After identifying the appropriate URL, the necessary adjustments become clear:

  • If the hreflang annotation is accurate, then the robots.txt file is at fault and must be edited to change or eliminate the particular rule causing the issue.

  • If the hreflang annotation is faulty, then these annotations must be updated to reference the correct URL.

0 views0 comments

Recent Posts

See All

CSS file size too large discovered in SEO audit

In our SEO audits at Loud Interactive, we often come across a common yet significant issue that can heavily impact your website's loading speed and overall performance: CSS file size too large. Let's

CSS file size too large discovered in SEO audit

When conducting an SEO audit on your site, one issue that might come up is that your CSS file size is too large. But why does this matter, and what can you do about it? Let's dive in. What's the Issue

H1 tag missing or empty" Discovered in an SEO Audit

At Loud Interactive, we've encountered a common issue during our SEO audits that can significantly impact a website's performance on search engines: the "H1 tag missing or empty" warning. This problem

bottom of page