https://shop.example/shoes/runner
- Why it exists
- The page you want indexed
What a canonical URL is, the three ways to signal one and how strong each is, the mistakes Google warns about, and how to see which URL Google picked.
A canonical URL is the one Google picks as the most representative from a set of duplicate pages. You can suggest it with a redirect or a rel="canonical" link, which Google calls strong signals, or by listing it in your sitemap, a weak signal. Google makes the final choice, and URL Inspection in Search Console shows which URL it picked.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
https://shop.example/shoes/runnerhttp://shop.example/shoes/runnerhttps://shop.example/shoes/runner?color=bluehttps://shop.example/sale/runnerhttps://staging.shop.example/shoes/runnerDuplicates are rarely deliberate. Google lists the usual causes: region variants in the same language, mobile and desktop versions, HTTP and HTTPS versions, sorting and filtering functions, and a demo version accidentally left accessible to crawlers.
rel="canonical"<link rel="canonical" href="https://shop.example/shoes/runner" />Link: <https://www.example.com/downloads/white-paper.pdf>; rel="canonical"Google says to use absolute URLs in the HTTP header too, and recommends a self-referential rel="canonical" on the canonical page itself. It also recommends picking either the element or the header rather than both, because using both is more error prone.
Google accepts the rel="canonical" link element only if it appears in the <head> section of the HTML. Google says to make sure at least the <head> is valid HTML.
Google says to use absolute paths rather than relative ones in the link element.
Google generally doesn't support URL fragments as canonicals.
If you inject the element with JavaScript, Google says to inject it properly and make sure scripts don't change it afterward.
curl -s https://shop.example/shoes/runner | grep -io '<link[^>]*canonical[^>]*>'
curl -sI https://shop.example/downloads/guide.pdf | grep -i '^link:'If the first command prints nothing but your template has the tag, something upstream (a cache, a CDN rule, a plugin) is stripping or moving it.
rel="canonical" annotations. When those signals disagree, Google may pick a different URL from the one you declared.That's why consistency matters more than any single tag: link internally to the canonical, list only canonicals in the sitemap, redirect HTTP to HTTPS, and make every variant's canonical point the same way.
Google says not to, because it may still index URLs disallowed in robots.txt without their content.
Google doesn't recommend it because it will completely block the page from Search; rel="canonical" is the preferred solution.
Google advises against specifying different canonical URLs for the same page through different methods, such as one URL in the tag and another in the sitemap.
Google says it hides all versions of a URL from Search.
In Search Console, paste a duplicate into URL Inspection. Google's troubleshooting guide says to use this tool to check which page Google considers canonical.
If they differ, Google is reading other signals more strongly than your tag. Check internal links, the sitemap and redirects for the URL Google chose.
Run curl -s https://shop.example/shoes/runner?color=blue | grep -i canonical to confirm the tag is in the served HTML, not only added later by JavaScript.
After aligning the signals, Google says it might hold pages in a duplicate cluster for up to two weeks. "Request Indexing" in URL Inspection can ask Google to re-evaluate, but it is subject to quotas, so reserve it for your most important URLs.
4 questions people ask next, answered from the sources on this page.
No. Google calls it a strong signal, alongside redirects. Google chooses the canonical using several signals and may pick a different URL if they conflict.
No. Google says not to use robots.txt for canonicalization, because it may still index disallowed URLs without their content.
Not as such. Google says it shows only one version of duplicate content in results, and a canonical preference is a hint, not a rule. Using noindex to choose a canonical will completely block the page from Search, so Google prefers rel="canonical" for that.
Yes. Send a Link HTTP header with rel="canonical" and an absolute URL. Google supports this for web search results.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.