When the same content can be reached at more than one URL, Google picks one version to show. You can help it choose. This guide follows Google’s documentation on consolidating duplicate URLs and compares the methods, from strongest to weakest.
Quick facts
- Strong signals: redirects and the `rel=”canonical”` link
- Also works: the `rel=”canonical”` HTTP header, for non-HTML files such as PDFs
- Weak signal: a sitemap
- Avoid: robots.txt, the URL removal tool and noindex for canonicalisation
- Best practice: add a self-referential canonical on the canonical page itself
- Last checked: 5 November 2026 against Google Search Central
Why consolidate?
Google says canonicalisation helps you control which URL appears in search results, consolidates signals such as links into one preferred URL, simplifies tracking metrics and keeps crawlers focused on new or updated pages. Read Google’s duplicate URL guidance for the full detail.
The methods, from strongest to weakest
| Method | Strength | Notes |
|---|---|---|
| Redirects | Strong | Use permanent redirects only to retire a duplicate page; server-side redirects work fastest |
| `rel=”canonical”` link | Strong | Can map unlimited duplicates, but is hard to maintain on large or frequently changing sites; works only for HTML |
| `rel=”canonical”` HTTP header | Strong | Works for non-HTML files and adds no page size |
| Sitemap | Weak | Simple to maintain at scale, but Google still decides which pages are duplicates |
The methods can stack. Google recommends choosing either the HTML element or the HTTP header rather than both, since mismatched URLs cause errors. For more on redirects, see our guide to 301 vs 302 redirects, and our canonical tag guide for WordPress.
Best practices
- Include a self-referential canonical on the canonical page itself
- Use absolute URLs, not relative paths
- Link internally to the canonical URL
- Keep canonicals in the same language when using hreflang
- With JavaScript rendering, put the canonical in the HTML source; if JavaScript must set it, do not let scripts change it afterwards
- Use the same canonical URL across all methods; do not specify one URL in a sitemap and a different one with rel=”canonical”
What to avoid
- robots.txt: disallowed URLs can still be indexed without their content
- The URL removal tool: it hides all versions of a URL from Search, not just duplicates
- noindex: it blocks the page entirely, so rel=”canonical” is the preferred solution to choose a canonical within a site
- Fragments: do not designate URL fragments as canonical
Other signals
Google prefers HTTPS over HTTP. Bad certificates, HTTPS-to-HTTP redirects, or HTTP URLs in sitemaps or hreflang can make Google prefer HTTP. Google also favours URLs that belong to reciprocal hreflang clusters when choosing canonicals. If a duplicate URL is not being indexed, our guide to checking whether a page is indexed can help.
Frequently asked questions
Which method is strongest?
Redirects and the rel=”canonical” link are both strong signals; a sitemap is a weak one.
Can I use robots.txt to handle duplicates?
Google says not to. Disallowed URLs can still be indexed without their content.
Should the canonical page point to itself?
Yes. Google recommends a self-referential canonical on the canonical page.
Can I use both the canonical link and the HTTP header?
Google recommends choosing one, since mismatched URLs cause errors.



