Sub topic 14
Common canonical mistakes and conflicting signals
This chapter assumes you can write a rel=canonical link element, know what a 301 redirect is, and understand how URL variants create duplicate content. Here you will learn the errors that make search engines ignore a canonical hint, and how to spot them.
Why canonicals get ignored
A canonical is a hint, not a command. Search engines compare it with other signals: redirects, internal links, sitemap entries, and the page content itself. When these signals disagree, the engine picks a URL on its own. Most canonical problems are conflicts between signals.
Common mistakes
Relative or malformed URLs
A relative canonical such as href="/shoes/trail-running" can resolve to the wrong host or protocol, for example on a staging server. Use an absolute URL with protocol and host.
Canonical pointing to a broken or blocked page
If the target returns a 404, redirects, or is blocked by robots.txt, the engine cannot use it. The target should return 200 and be crawlable.
Several canonicals on one page
Plugins and templates sometimes both add a canonical. When a page declares two different values, engines often ignore both. Keep exactly one.
Canonical outside the head
A link element placed in the body is ignored. Scripts that inject the element late can also fail. Keep it in the head of the served HTML.
Canonicalizing everything to the home page
Pointing every page at the home page tells the engine that all pages are duplicates of it. Each page should point to itself or to a truly equivalent page.
Canonicalizing different content
If page A is canonical to page B but the content differs, the engine will likely disregard the hint. Canonicals are for the same or near-identical content.
Conflicting signals
| Signal A | Signal B | Likely result |
|---|---|---|
| Canonical points to URL X | Sitemap lists URL Y | Engine may choose either |
| Canonical points to URL X | Internal links all use URL Y | Engine may choose Y |
| Canonical points to URL X | `noindex` on URL X | Target may drop from the index |
| Canonical points to URL X | URL X redirects to Y | Hint is unreliable |
| Page is `noindex` | Same page has a canonical to another URL | Mixed message |
Be consistent: the canonical URL, the sitemap entry, the internal links, and any redirects should all name the same URL.
<!-- Conflict: page is canonical to X but also noindex -->
<head>
<meta name="robots" content="noindex">
<link rel="canonical" href="https://www.example.com/shoes/trail-running">
</head>Choose one approach. If the page should be consolidated into another, use the canonical or a 301. If it should stay out of the index, use noindex.
Diagnosing a conflict
Use the URL Inspection tool in Google Search Console. It shows both the canonical you declared and the one Google selected. If they differ, work through the checks above.
Exercise
A product page declares a canonical to https://www.example.com/p/1, but the sitemap lists https://www.example.com/p/1?ref=home and most internal links use the parameter version. Google selects the parameter URL. What is the likely cause and the fix?
Show answer
The sitemap and internal links send a stronger, conflicting signal than the canonical hint. Change the sitemap and internal links to use the clean URL https://www.example.com/p/1, so every signal names the same URL.