By the PreIndex teamUpdated Based on Google Search Central documentation
In short
- rel=canonical tells Google which of several duplicate URLs is the main one. It is a strong hint, not a command.
- Keep exactly one canonical, in the <head>, with an absolute URL to a page that answers 200.
- If a page has two canonicals that disagree, Google ignores both and picks one itself.
- Redirects are a stronger signal than canonical tags; sitemaps are a weaker one. Make them all agree.
What a canonical tag does
The same content often lives at several addresses: with and without www, over http and https, with tracking parameters, in a print version, or under two categories. Google calls this duplicate content and chooses one URL, the canonical, to show in search results. A canonical tag tells it which one you prefer:
<link rel="canonical" href="https://example.com/shoes/red-sneakers">Links and other signals pointing to the duplicates are consolidated into the canonical, so one strong page ranks instead of several weak copies. Duplicate content isn’t a penalty; the canonical just decides which copy represents it.
How Google chooses the canonical
Google weighs several signals and picks the canonical itself. They aren’t equal:
| Signal | Strength | Use it when |
|---|---|---|
| 301 or 308 redirect | Strong | The duplicate URL doesn’t need to exist any more. |
rel="canonical" tag or header | Strong | Both URLs must stay reachable, such as filtered or tracking URLs. |
| Listed in the sitemap | Weak | Always: list only canonical URLs in your sitemap. |
Google also prefers HTTPS over HTTP and looks at which version your internal links use. Problems start when the signals disagree, for example a canonical to URL A while your internal links and sitemap point to URL B.
Should every page have a self-referencing canonical?
Yes, as a rule. A page that names itself as canonical protects you against duplicates you didn’t plan, such as URLs with ?utm_source= or session IDs that other sites link to. Most SEO plugins add it automatically.
A canonical that points to a different URL is right only when the page really is a copy:
- product variants (colour, size) that share one description;
- sorted or filtered views of the same category;
- an article republished on another site, pointing back to the original.
Paginated pages are not copies: page 2 of a category lists different products, so it should canonical to itself, not to page 1.
Canonical mistakes this checker catches
- Several canonical tags with different URLs. Google then ignores all of them. Usually a theme and a plugin each add one.
- A canonical in the <body>. Google only reads rel=canonical in the
<head>. Invalid HTML earlier in the head, such as an image, can end the head early and push the tag into the body. - A canonical to a redirected, broken or noindex URL. Point it at the final, working, indexable address.
- Every page canonical to the home page. A theme bug that tells Google the whole site is one page.
- Canonical combined with noindex. Mixed signals: noindex says “drop this”, the canonical says “count it as that page”. Pick one.
- Language versions canonical to each other. With hreflang, each language version should name itself as canonical.
Relative URLs work, but absolute ones (with https:// and the domain) avoid mistakes. For PDFs and other files, send the canonical as an HTTP header: Link: <https://example.com/guide>; rel="canonical".
“Duplicate, Google chose different canonical than user”
This Search Console status means Google read your canonical but decided another URL represents the content better. Open the URL in Search Console’s URL Inspection to see which one Google picked, then ask whether Google might be right.
- If the two pages are near-identical, consolidate them: redirect one to the other.
- If they should be different pages, make them clearly different in content, title and headings.
- Make internal links, the sitemap and hreflang all point to the URL you want, so every signal agrees with your canonical tag.
After fixing a canonical
Google has to recrawl both the duplicate and the canonical page before it changes its choice, which can take weeks for pages it visits rarely. Check the result with the Google Index Checker after a few days, or submit both URLs to PreIndex to get them crawled sooner.
Frequently asked questions
How do I find the canonical URL of a page?
Paste the page URL above. The checker shows the canonical from the HTML <head> and from the HTTP Link header, and whether it points to the page itself or elsewhere.
Is a canonical tag a directive?
No. Google treats rel=canonical as a strong hint. If other signals disagree, such as redirects or internal links, Google may choose a different canonical.
What happens with two canonical tags?
If they point to different URLs, Google ignores them and chooses the canonical itself. Keep exactly one.
Should the canonical be absolute or relative?
Absolute URLs are safer. Relative ones work, but a small mistake in the path or a missing protocol can point Google at the wrong address.
Should paginated pages canonical to page 1?
No. Each page in a paginated series lists different items, so give each page a canonical to itself.
Does a canonical pass link signals?
Yes. Google consolidates signals such as links to the duplicates into the canonical URL it chooses.