Technical SEO & Website Performance
Canonical Tags and Duplicate URLs: How to Choose the Right Page
Why the same content often appears at several URLs, how search engines choose a canonical version, and how to use redirects, canonical tags and consistent internal links to point them to the page you prefer.
Last reviewed: 14 October 2026
Many websites show the same or very similar content at more than one URL without anyone noticing. Search engines then have to pick one version to show. The URL they pick is called the canonical URL. This guide explains why duplicates happen, how to tell search engines which version you prefer, and the mistakes to avoid.
Why duplicate URLs happen
Duplicate or near-duplicate URLs are usually technical, not deliberate copying. Typical causes:
- Protocol and host versions: http and https, with and without www.
- Trailing slashes and capital letters: /page and /page/ or /Page/.
- Tracking and filter parameters: ?utm_source=…, ?sort=price, ?colour=red.
- Printer-friendly or AMP versions of the same article.
- The same product or service in several categories, each creating its own URL.
- Copied pages for different cities with only the city name changed.
Duplicates are not a penalty in themselves, but they split signals such as links across several URLs, waste crawling and can lead search engines to show a version you did not intend.
How search engines choose a canonical
Google looks at several signals to decide which URL is the main version. According to Google’s documentation, the main ways to indicate your preference are, from strongest to weakest:
| Method | Strength | When to use it |
|---|---|---|
| Permanent (301) redirect | Strong | When the duplicate should no longer be visited at all, for example after moving a page |
rel="canonical" link element (or HTTP header) | Strong | When both URLs must stay available, for example parameter versions |
| Listing the URL in your sitemap | Weak | Supports the other signals; include only canonical URLs |
These signals are suggestions. Google may still pick a different canonical if other signals, such as internal links, disagree. That is why consistency matters.
How to add a canonical tag
A canonical tag is a line in the page’s <head> such as:
<link rel="canonical" href="https://www.example.com/services/seo-audit/" />
In WordPress, SEO plugins such as Rank Math add a self-referencing canonical to each page automatically. You only need to change it when one page should point to another, and you should do so carefully.
Good practice:
- Use absolute URLs (with https:// and the domain), not relative paths.
- Point each canonical page to itself.
- Make all signals agree: internal links, sitemap entries, redirects and canonical tags should all point to the same preferred URL.
- Canonicalise only true duplicates or very close variants, not pages on different topics.
Mistakes to avoid
- Using robots.txt to fix duplicates. If a duplicate URL is blocked, search engines cannot see its canonical tag, and the URL can still be indexed without its content.
- Using
noindexto choose a canonical.noindexremoves the page from results entirely; it does not pass signals to another URL in the way a canonical or redirect does. - Conflicting signals. For example, the canonical points to page A, the sitemap lists page B, and internal links go to page C.
- Canonicalising paginated or category pages to page one when they contain different items.
- Changing canonical tags with JavaScript, which can produce inconsistent results.
- Pointing a canonical to a URL fragment such as /page#section.
Checking canonicals on your site
- Open a page, view the source and search for
rel="canonical". Confirm it shows the URL you expect. - In Google Search Console, use URL Inspection on an important page. It shows the user-declared canonical and the Google-selected canonical. If they differ, investigate why.
- In the Page indexing report, look at reasons such as “Duplicate without user-selected canonical” or “Duplicate, Google chose different canonical than user”.
- Check that your site consistently uses one version: https, one host (with or without www) and one trailing-slash style, with redirects from the others.
A note on location pages
Local businesses sometimes create many pages that differ only by the city name. These pages are often treated as near-duplicates, and creating them only to rank in many places can count as doorway pages under Google’s spam policies. If you serve several areas, create a location page only where you have something genuinely specific to say, such as the services offered there, local details, staff or projects. Our guide on creating local landing pages that rank explains how to make them useful.
Worked example
An online store in Pune sells the same kurta in three colours. Its product page is available at /kurta-cotton/, but filter links create /kurta-cotton/?colour=blue and /kurta-cotton/?colour=green with nearly identical content. The store keeps the colour options on one page, makes sure each filtered URL has a canonical tag pointing to /kurta-cotton/, lists only the main URL in its sitemap and links to the main URL from category pages. All its signals now point to one page.
Common questions
Will duplicate content get my site penalised?
Ordinary technical duplicates, such as URL parameters or printer versions, are common and are not a spam problem in themselves. Google usually chooses one version to show. Problems arise when content is copied from other sites or duplicated at scale to manipulate rankings.
Should every page have a canonical tag?
It is good practice for each indexable page to have a self-referencing canonical tag. WordPress SEO plugins usually add one automatically.
Can I use a canonical tag across different websites?
Cross-domain canonicals exist, but for articles republished by another website (syndication), Google’s documentation since 2023 does not recommend relying on them, because syndicated pages often differ from the original. The most effective option is for the partner site to add noindex to its copy. If you republish across your own websites, a canonical tag pointing to the original is still a reasonable signal.
Next step
Canonicals, sitemaps and internal links work together. Read XML sitemaps and robots.txt and our internal linking guide, then practise by inspecting a few URLs of your own site in Search Console. This guide is part of Module 10 of our free SEO course (Advanced SEO). Canonical implementation is also practised in the On-Page SEO module of our SEO Course in Pune.
Source (checked 14 October 2026): Google Search Central, How to specify a canonical URL with rel=”canonical” and other methods.
