Indexability · Canonicals

Mismatched HTML and header canonicals

The HTML canonical and the Link HTTP header canonical point to different URLs, so Google may ignore both.

How this page is built

The canonical in the HTML head points to this page, but the Link HTTP response header points to the canonical target page.

Why it matters

This page declares two different canonical URLs, one in the HTML head and another in a Link HTTP response header. Search engines cannot follow both.

When the signals disagree, Google is likely to ignore both and choose a version on its own, so the canonical has no effect at all.

How to check it

Find the canonical in the page source, then check the response headers for a Link header with rel=“canonical”. If the two addresses differ, they conflict. Most crawl tools report both values side by side, and the URL inspection tool in Google Search Console shows which canonical Google chose.

How to fix it

Use a single canonical declaration. For HTML pages remove the HTTP header and keep the link element in the head.

Check server, CDN and hosting configuration for rules that add Link headers, because these are easy to forget when the page template changes.

Back to all tests