Guide

What Is a Canonical URL and Why Does It Matter?

If you’ve come across the term “canonical URL” and wondered what it means, you’re not alone. It’s one of those slightly technical SEO concepts that sounds more complicated than it is. In simple terms, a canonical URL is the version of a page that you want Google to treat as the authoritative, original version — particularly when multiple URLs might return the same or very similar content.

Duplicate content is surprisingly common on websites, often without the site owner realising it. Canonicalisation is the standard mechanism for resolving it. Understanding how it works — and how to implement it correctly — can prevent your SEO efforts from being diluted across multiple versions of the same page.

Why Duplicate Content Happens

Websites often generate multiple URLs that serve identical or near-identical content without anyone planning it that way. Common causes include: the same page being accessible with and without a trailing slash (example.com/services vs example.com/services/); HTTP and HTTPS versions both being live; www and non-www versions both accessible; URL parameters adding variants (example.com/products?colour=red vs example.com/products?colour=blue showing the same items); and CMS or e-commerce platforms generating separate URLs for the same product or article from different category paths.

When Google finds multiple URLs serving the same content, it has to decide which one to index and rank. If it chooses a different version to the one you prefer — or splits the link equity between multiple versions — your rankings suffer. Canonicalisation gives you a way to tell Google which URL to prioritise.

How the Canonical Tag Works

The canonical tag is a line of HTML code placed in the head section of a page. It looks like: link rel="canonical" href="https://www.example.com/the-preferred-url/". It tells Google: “This page may be accessible via multiple URLs, but this specific URL is the one I want you to treat as the canonical (original) version. Please consolidate any link signals from duplicate versions to this URL.”

Google treats the canonical tag as a hint rather than an absolute directive — it may choose to ignore it if it disagrees, particularly if other signals (such as internal linking or sitemap inclusion) contradict the tag. But in the vast majority of cases, a correctly implemented canonical tag is respected. Self-referencing canonical tags — where a page points to itself as the canonical — are recommended best practice even when there’s no obvious duplication risk, as they pre-empt any future URL variations.

Canonical URLs vs 301 Redirects

Both canonical tags and 301 redirects are ways of consolidating duplicate content, but they behave differently. A 301 redirect actually sends users and crawlers to a different URL — the old URL becomes inaccessible. A canonical tag leaves both URLs accessible but tells Google to treat one as the original for indexing purposes.

Use a 301 redirect when you want the duplicate URL to stop being accessible — for example, when you’ve permanently moved content to a new URL and want to transfer all the link equity. Use a canonical tag when you need the duplicate URL to remain accessible for other reasons (for example, URL parameters used by a tracking or filtering system) but want Google to index and rank only the canonical version. Many CMS platforms like WordPress (particularly with SEO plugins like Yoast or Rank Math) handle canonical tags automatically, reducing the risk of accidental duplication.

FAQs

Common questions.

Do I need to add a canonical tag to every page on my website?
Best practice is to include a self-referencing canonical tag on every page, even if you don’t think there’s a duplicate content issue. This prevents unintended duplicates caused by URL parameters or tracking codes and ensures Google always has a clear signal about your preferred URL. Most SEO plugins for WordPress add these automatically.
What happens if I set the canonical tag to the wrong URL?
If you point the canonical tag at a URL that doesn’t exist or returns an error, Google will likely ignore the tag and make its own decision. If you point it at the wrong live page, Google may consolidate your rankings to an unintended page. Always double-check canonical tags — particularly after a site migration or URL restructure — to make sure they point to live, correct URLs.
Can a canonical tag cross domains?
Yes. Cross-domain canonical tags allow you to indicate that content on one domain is the original version and content on another domain is a syndicated copy. This is commonly used by publishers who syndicate their articles to other sites and want Google to credit the original. The receiving site points its canonical tag at the originating domain’s URL.
Related guides

More on web design & ux.

Want a hand putting this into practice?

Book a free, no-obligation consultation with a Norwich-based specialist.

Book a free consultation
Get started

Let's put your business in a better light.

Book a free, no-pressure consultation. We'll talk through your goals and tell you honestly what we'd do — whether you work with us or not.

  1. 01
    Tell us a bitFill in the form — two minutes, tops.
  2. 02
    We'll call you backWithin one working day, no pressure.
  3. 03
    Get a clear planHonest advice and a fixed quote.

Free · No obligation · We reply within one working day

Book a free consultation