A glowing blue android in profile under a starry sky
Willis Web Design / 01 of 08

Home / SEO Tips / Canonical URLs Guide

SEO Tips

Canonical URLs Guide: Duplicate Pages Explained

A canonical URL is the one address Google picks to stand for a page when the same content can be reached at several addresses. This guide explains why duplicates happen, how Google chooses, how you can state your preference, and what to check when Google picks a different page from the one you wanted.

What A Canonical URL Is And Why Duplicates Happen

Google calls the process of choosing one address for a piece of content canonicalisation, or deduplication. When the same page can be reached at more than one address, Google groups the copies together and shows just one of them in its results. That chosen address is the canonical URL.

Most duplicate content is not created on purpose. It builds up quietly as a website grows. Google lists five common sources:

  • Regional copies: separate pages for UK and US visitors that say almost the same thing in the same language.
  • Device copies: a desktop page and a separate mobile page with the same content.
  • Protocol copies: the same page loading at both http and https addresses.
  • Site features: the sorted and filtered views of a category page in an online shop.
  • Accidents: a test or demo copy of the site left open for search engines to find.

Google is clear that some duplication is normal and does not count as spam. The trouble is practical. Visitors can land on an odd version of a page, links from other sites get split across several addresses, and your figures in Search Console are spread thin. A tidy canonical set-up fixes all three. It is one of the first things checked in a technical SEO audit, because it affects every other report.

Canonical URLs Guide In The SEO Tips Map

Every part of the SEO tips, on one map. The page you are reading is highlighted.

How Google Groups Duplicates And Picks One To Show

When Google indexes a page, it works out the page's main content and puts pages with the same or very similar content into a cluster. It then picks the page it thinks is the most complete and useful for searchers and marks that one as canonical. The canonical page gets crawled most often. The duplicates are crawled less, which saves effort on your server and on Google's side.

To make that choice, Google weighs several signals together:

  • whether a page is on https or plain http;
  • any redirects between the versions;
  • whether the address appears in your XML sitemap;
  • any rel="canonical" tag on the page.

Your own choice is a hint, not an order. Google may still choose differently if the signals disagree. That is why consistency matters more than any single tag.

Translations And Regional Pages

A translated page only counts as a duplicate if its main content is in the same language. Translating just the menu, header or footer does not make two pages different. If you run regional versions in the same language, such as UK and Irish pages in English, Google says to use canonical tags and hreflang together so it knows which regional address to show each audience. Our international SEO and hreflang guide covers that set-up in full.

What The Canonical Is Used For

Google uses the canonical page as the main source when it judges your content and its quality. Results usually link to the canonical, but not always. A phone user may be sent to your mobile page even when the desktop page is the canonical one, because it suits them better. Our mobile-first indexing guide explains how the phone version fits in.

Four Good Reasons To Tell Google Your Preferred Address

You do not have to state a canonical. If you say nothing, Google picks the version it thinks is best. But stating one gives you more control, for four reasons Google lists:

Choose The Address People See

A clean product address looks better in results than the same page with a tracking code such as ?gclid=ABCD on the end.

Gather Link Value In One Place

Links pointing at the copies can be counted towards your preferred page instead of being split up.

Read Your Figures Clearly

One address per page means clicks and impressions are not scattered across several versions in your reports.

Save Crawling Time

Googlebot spends less time on copies and more on your new and updated pages.

If your site runs on a hosted builder or WordPress, you may not be able to edit the page code directly. Look for a search settings screen, or search for how your platform lets you change the head of a page. I handle this as standard on every WordPress website build and every hand-built site.

The Ways To Signal A Canonical URL, Strongest First

Google ranks the methods by how much weight they carry. Redirects and the rel="canonical" tag are strong signals. Listing a page in your sitemap is a weak one. You can combine them, and doing so makes it more likely your preferred address is the one that appears.

MethodWhat is good about itWhat to watch
RedirectStrong signal. Best when you are retiring a duplicate for good.Use a permanent redirect. Server-side redirects are picked up fastest.
Canonical link tagStrong signal. Can point any number of copies at one page.Hard to keep right on large, fast-changing sites. Works on web pages only.
Canonical HTTP headerDoes not add to page size. Works for files such as PDFs.Needs server access. Same upkeep issue on large sites.
XML sitemapSimple to set up and maintain, even on big sites.Weak signal. Google still has to work out which pages are duplicates.
AMP pairingFollows the AMP rules for linking the two versions.Only relevant if you still run AMP pages.

The Canonical Link Tag

Put a link element in the head of each duplicate page, pointing at the preferred version. Put the same tag on the preferred page too, pointing at itself. Google follows the RFC 6596 standard for this tag.

<link rel="canonical" href="https://www.example.com/dresses/green-dresses">

Always use the full address, starting with https. Short paths like /dresses/green-dresses are allowed but can go wrong, for example if a test copy of your site gets crawled. Google only reads the tag inside the head, so the head must be valid code. A stray element high up the page can end the head early and hide the tag.

If the page also has a separate mobile address, add an alternate link next to the canonical one, with a media rule for small screens. Add any hreflang tags as well. Google ignores canonical tags that carry hreflang, lang, media or type attributes, because those describe alternate versions rather than the preferred one. Use rel="alternate" for language and country versions instead.

The Canonical HTTP Header

For files that are not web pages, you can send the canonical as a Link header from the server. Say you offer a guide as both a PDF and a Word file, and want the PDF shown. The Word file's response would include:

Link: <https://www.example.com/downloads/white-paper.pdf>; rel="canonical"

This works in web search results only, and again needs a full address. You can use the header or the tag on a page, but pick one: using both is supported but makes mistakes more likely.

Sitemaps And Redirects

Every address in your sitemap is treated as a suggested canonical, so list only preferred addresses. The XML sitemaps guide covers how to build one. To get rid of an existing duplicate, use a permanent redirect. Google's example is a home page reachable at three addresses: pick one and redirect the other two to it. All permanent redirect types have the same effect, but server-side ones are spotted quickest. Our redirects and site moves guide explains the types in detail.

Canonical Rules That Stop Mixed Signals

Most canonical problems come from signals that contradict each other. Google gives a short list of do's and don'ts that apply whichever method you use. Run through it on your own site:

  • Do not use robots.txt to handle duplicates. A blocked address can still be indexed without its content. See the robots.txt guide for what it is really for.
  • Do not use the tool for removing URLs for this. It hides every version of the address, not just the copy. The guide to removing pages from Google explains when that tool is the right one.
  • Do not name different canonicals for the same page in different places, such as one address in the sitemap and another in the tag.
  • Do not use an address with a hash fragment (the part after #) as the canonical. Google generally ignores fragments.
  • Do add a self-referencing canonical tag to every preferred page.
  • Do not use noindex to pick a canonical within your own site. It removes the page from search altogether. The meta tags and noindex guide covers the difference.
  • With hreflang, point each page's canonical at a page in the same language, or the closest substitute if there is none.
  • Link to the canonical address in your own menus and text, not to the copies. Our URL structure and links guide has more on clean internal links.
  • If JavaScript builds your pages, put the canonical in the original page code and make sure scripts do not change it. Only set it with JavaScript if you cannot put it in the code at all.

That last point catches out many modern sites. Our JavaScript SEO guide shows how a script can safely add a canonical tag, and why it must never add a second one.

HTTPS, Hreflang And Other Signals Google Weighs

Beyond the methods above, Google reads clues from how your site is set up.

Google Prefers The Secure Version

Google normally chooses the https version of a page as canonical. It may not, though, if the secure version sends mixed messages:

Things that push Google back to http:

  • an invalid SSL certificate;
  • insecure files loaded on the https page (images are the exception);
  • the https page redirecting to or through http;
  • a canonical tag on the https page pointing at the http version;
  • http addresses listed in the sitemap or hreflang tags;
  • a certificate for the wrong host name, such as one that covers only a subdomain.

Things that reinforce https:

  • redirecting every http page to its https version;
  • a canonical tag from each http page to the https one;
  • turning on HSTS, which tells browsers to always use the secure version.

HSTS helps, but Google notes it cannot outweigh a broken certificate or an https-to-http redirect. The certificate must cover your full site address, or be a wildcard certificate.

Every site I build runs on https with SSL included on my UK web hosting, and every http address redirects to its secure version.

Pages In Hreflang Groups Win

Google prefers addresses that are part of a working hreflang group. In Google's example, German pages for Germany and Switzerland link to each other with hreflang, but the Austrian page is left out. The German and Swiss pages are then favoured as canonicals over the Austrian one.

Fixing It When Google Chooses A Different Canonical URL

Sometimes Google picks a page you did not expect, because of content quality or technical signals. Google suggests working through four steps:

  1. 01

    See What Google Chose

    Open the URL Inspection tool in Search Console and look at the Google-selected canonical. Ask honestly whether Google's choice serves searchers better than yours. If the chosen page sits in a property you do not own, you will not see its traffic. Our Search Console guide shows where to look.

  2. 02

    Look For Technical Faults

    Check for signals you did not mean to send: a wrong tag added by a plugin, a server set up badly, or missing hreflang. The causes are listed in the next section.

  3. 03

    Make The Pages Truly Different

    If two pages should both be in search, give them clearly different main content. Google may keep them grouped for up to two weeks after you change them. Big, clear differences are split out faster than small tweaks.

  4. 04

    Ask Google To Look Again

    Once fixed, use Request Indexing in the URL Inspection tool. It has a daily limit, so use it for your most important pages only.

If you would rather someone else did the digging, the free website audit scores your home page on phones and computers and tells you how many issues it found, and the £20 Pro audit adds a crawl that flags canonical and duplicate content problems across up to 25 pages. For the exact fixes, worked out by hand, there is my £595 technical SEO audit.

Six Common Causes Of A Wrong Canonical

Google lists the issues it sees most often when its choice differs from the site owner's:

Regional Pages Without Hreflang

Sites for UK, US and Australian readers with near-identical English content. Add hreflang so each audience gets the right version.

Wrong Tags From A Plugin

A content system or plugin adds canonical tags or redirects that point at the wrong address. Check the page code in your browser's developer tools and report the fault to the supplier.

Badly Set Up Servers

A server returns another domain's content, or two unrelated servers show identical "not found" pages that wrongly return a success code. Speak to your host.

A Hacked Website

Attackers add a redirect or a canonical tag pointing at a spam site, and Google may follow it. See the website security and SEO guide.

Syndicated Articles

Partners republish your articles. Google does not recommend canonical tags here. The best fix is for partners to block their copies from being indexed.

A Copycat Site

Rarely, Google picks a site that copied your content. Ask its host to remove it, or send Google a copyright request to drop it.

Redesigns are a common moment for canonical mistakes, because addresses change. I list every old address and redirect each one to its new page as part of every website redesign address map. For an online shop with many filtered views, the ecommerce SEO service includes a canonical review. You can browse the rest of the guides on the SEO Tips map.

Based on Google Search Central documentation: What is URL canonicalization, How to specify a canonical URL with rel="canonical" and other methods, Fix canonicalization issues. Licensed under CC BY 4.0. Rewritten in plain English by Willis Web Design; last checked 13 October 2026.

Questions

Questions About Canonical URLs Guide

Is duplicate content a penalty?

No. Google says some duplication is normal and does not break its spam policies. A shop with sorting options or a site with both web and print versions will always have some. The real cost is softer: Google may show a version you did not want, links get split between addresses, and your reports become harder to read. That is why it pays to point every copy at one preferred address.

Do I need a canonical tag on every page?

It is not required, and Google will choose a version itself if you say nothing. Even so, Google recommends adding a self-referencing canonical tag to each preferred page, and it is cheap to do. I add one to every page I build, using the full https address, so there is never any doubt about which version you want shown in search results.

Will Google always follow my canonical tag?

Not always. Google treats your canonical tag, redirects and sitemap entries as strong or weak hints, not orders. If other signals disagree, such as internal links pointing at a different version, a broken certificate or pages that are not truly duplicates, Google may pick another page. Check the URL Inspection tool in Search Console to see which address Google actually chose.

Can I use robots.txt or noindex to hide duplicate pages?

Google advises against both for this job. A page blocked in robots.txt can still be indexed without its content, and noindex removes the page from search completely rather than passing its value to your preferred version. Search Console’s tool for removing URLs is also the wrong choice, because it hides every version. Use redirects or a rel canonical tag instead.

How long does it take Google to fix a duplicate cluster?

Once you have made the pages clearly different, Google may keep them grouped together for up to two weeks before it splits them. Bigger, clearer differences tend to be picked up faster. You can ask for a recrawl with Request Indexing in the URL Inspection tool, but it has a daily limit, so save it for your most important pages.

What happens if another site copies my content?

In rare cases Google may treat a copycat site as the canonical version of your page. Google suggests contacting the company that hosts the copy and asking for it to be taken down. If the copy breaks your copyright, you can send Google a legal request under the US Digital Millennium Copyright Act to have the page taken out of search results.

Next step

See where your website stands, free.

Run a free test of your current site, or call me for a straight answer about what you need.