Indexability · Canonicals

Canonical points to a disallowed URL

The canonical target is blocked by robots.txt, so Google cannot crawl the page it is told to index.

How this page is built

This page canonicalises to /fixtures/disallowed-canonical-target/, which is blocked in robots.txt. It is not linked here, because a link would add a second error.

Why it matters

A canonical asks search engines to index another URL instead of this one. When that URL is blocked by robots.txt, Google cannot crawl it to confirm the content matches.

The canonical is then likely to be ignored, and the page you hoped to consolidate may not be indexed in the way you intended.

How to check it

Find the canonical address in the page source, then paste it into a robots.txt testing tool to see whether it is blocked. Crawl tools usually report canonicals that point to blocked addresses. In Google Search Console, compare the user-declared canonical with the Google-selected canonical in the URL inspection tool.

How to fix it

Point the canonical at a URL that search engines are allowed to crawl. Either remove the robots.txt rule that blocks the target or choose a different canonical URL.

Test the target with a robots.txt checker and make sure it returns a 200 status code and is indexable before relying on it as the canonical.

Back to all tests