Has outgoing hreflang annotations to disallowed URLs
This means that the URL in question has at least one outgoing hreflang annotation URL that is disallowed in robots.txt.
Why is this important?
Hreflang tags are interpreted by search engines as indexing instructions. An English page that has hreflang pointing at its French alternate is instructing search engines to index both the English version and the French version, and to consider each as equivalent in their respective languages.
If this French page was disallowed in robots.txt, this would stop search engines from crawling the content. Whilst this does not technically stop them from indexing the URL, it will stop them from validating hreflang return-tags (reciprocal hreflang), which is mandatory for hreflang to work properly.
What does the Hint check?
This Hint will trigger for any URL which contains hreflang annotations, where at least one of the hreflang URLs is disallowed.
Note: This Hint is very similar to another Hint: Disallowed URL has incoming hreflang. The difference being that this Hint is analysing the page with hreflang on (i.e. outgoing hreflang) whereas the other Hint is analysing the target page of a hreflang annotation (i.e. incoming hreflang).
Examples that trigger this Hint:
Consider the URL: https://example.com/page-a/
The Hint would trigger for this URL if it included an hreflang annotation:
where this hreflang page was disallowed in robots.txt:
How do you resolve this issue?
The problem with this sort of conflicting instruction is that it is not instantly obvious which page is causing the error. Either the hreflang is wrong or the robots.txt is wrong.
Either way, the current setup will stop hreflang from working properly, so it will need to be fixed.
This starts with figuring out which is the correct hreflang URL, which may require manual inspection.
Once you have established this, it should be straightforward to work out the next step:
- If the hreflang URL is correct, then the robots.txt is incorrect, and should be changed to remove or amend the offending rule.
- If the hreflang URL is not correct, then the outgoing hreflang annotations should be corrected so they point to the correct URL.