# Canonical URL

> 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.

Canonical: https://scaplet.com/glossary/canonical-url

Glossary Glossary · Crawling

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.

5 min

read

3

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

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.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcanonical-url%20(%22Canonical%20URL%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcanonical-url%20(%22Canonical%20URL%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcanonical-url%20(%22Canonical%20URL%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcanonical-url%20(%22Canonical%20URL%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 6 parts, 5 minutes.

1. [What a canonical URL is 01](#what-a-canonical-url-is)
2. [Three ways to signal it, and how strong each is 02](#three-ways-to-signal-it-and-how-strong-each-is)
3. [Why your canonical gets ignored 03](#why-your-canonical-gets-ignored)
4. [What Google weighs when it chooses 04](#what-google-weighs-when-it-chooses)
5. [Mistakes Google warns about 05](#mistakes-google-warns-about)
6. [How to check which URL Google picked 06](#how-to-check-which-url-google-picked)

_01_One product, five URLs

## What a canonical URL is

Google defines canonicalization as "the process of selecting the representative –canonical– URL of a piece of content," and the canonical URL as the URL Google chose as the most representative from a set of [duplicate pages](/glossary/duplicate-content). The other URLs in the set are duplicates. Google says it shows only one version of duplicate content in its results, and uses the canonical page as the main source to evaluate content and quality.

URL

### `https://shop.example/shoes/runner`

Why it exists

The page you want indexed

URL

### `http://shop.example/shoes/runner`

Why it exists

Protocol variant

URL

### `https://shop.example/shoes/runner?color=blue`

Why it exists

Filter parameter

URL

### `https://shop.example/sale/runner`

Why it exists

Same product in a second category

URL

### `https://staging.shop.example/shoes/runner`

Why it exists

Demo or staging copy left accessible

Duplicates are rarely deliberate. Google lists the usual causes: region variants in the same language, mobile and desktop versions, HTTP and [HTTPS](/glossary/https) versions, sorting and filtering functions, and a demo version accidentally left accessible to crawlers.

_02_At a glance

## Three ways to signal it, and how strong each is

Google's guide to consolidating duplicate URLs ranks the methods. They "can stack and thus become more effective when combined," so use more than one where you can.

Method

### Redirect (permanent)

Google's wording

A strong signal that the target of the redirect should become canonical

Use it for

URLs that shouldn't be visited at all, like HTTP or old paths

Method

### `rel="canonical"`

Google's wording

A strong signal that the specified URL should become canonical

Use it for

Variants people still need, like filtered or tracked URLs

Method

### Sitemap

Google's wording

A weak signal that helps the URLs that are included in a sitemap become canonical

Use it for

Listing only canonical URLs, as a supporting signal

In the <head> of every variant, including the canonical itself

```
<link rel="canonical" href="https://shop.example/shoes/runner" />
```

For PDFs and other non-HTML files, as a response header

```
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.

_03_Worth knowing

## Why your canonical gets ignored

### It's outside the `<head>`

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.

### It's a relative path

Google says to use absolute paths rather than relative ones in the link element.

### It ends in a fragment

Google generally doesn't support URL fragments as canonicals.

### JavaScript rewrites it

If you inject the element with JavaScript, Google says to inject it properly and make sure scripts don't change it afterward.

Check the raw HTML and the HTTP header in one go

```
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.

_04_Explained

## What Google weighs when it chooses

Your signal is a strong hint, not a command. Google's canonicalization overview lists the signals it considers, including whether the page is served over HTTP or HTTPS, redirects, presence of the URL in a sitemap, and `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.

_05_Worth knowing

## Mistakes Google warns about

### Using robots.txt to canonicalize

Google says not to, because it may still index URLs disallowed in [robots.txt](/glossary/robots-txt) without their content.

### Using `noindex` to pick a canonical within a site

Google doesn't recommend it because it will completely block the page from Search; `rel="canonical"` is the preferred solution.

### Sending mixed signals

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.

### Using the URL removal tool for canonicalization

Google says it hides all versions of a URL from Search.

**Canonical isn't removal**Google calls a canonical preference "a hint, not a rule", and it exists to pick one version of duplicate content. It is not a way to hide a page, and `noindex` is the wrong tool for choosing between duplicates because it will completely block the page from Search.

_06_How it works

## How to check which URL Google picked

1. 1

### Inspect the URL

In [Search Console](/glossary/google-search-console), paste a duplicate into [URL Inspection](/glossary/url-inspection-tool). Google's troubleshooting guide says to use this tool to check which page Google considers canonical.
2. 2

### Compare the two

If they differ, Google is reading other signals more strongly than your tag. Check [internal links](/glossary/internal-links), the sitemap and redirects for the URL Google chose.
3. 3

### Check the source

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.
4. 4

### Fix and re-inspect

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.

Scaplet's free [site audit](/site-audit) reads canonicals, redirects and sitemaps in one pass, so you can see where a canonical points one way while your sitemap points another.

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ Is rel="canonical" a directive?

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.

_02_ Should I use robots.txt to block duplicate URLs?

No. Google says not to use robots.txt for canonicalization, because it may still index disallowed URLs without their content.

_03_ Does a canonical remove the duplicate from Google?

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.

_04_ Can I set a canonical for a PDF?

Yes. Send a `Link` HTTP header with `rel="canonical"` and an absolute URL. Google supports this for web [search results](/glossary/serp).

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [What is URL canonicalization (Google Search Central)](https://developers.google.com/search/docs/crawling-indexing/canonicalization) developers.google.com · checked 2026-10-24
2. 02 [How to specify a canonical URL with rel="canonical" and other methods](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) developers.google.com · checked 2026-10-24
3. 03 [Fix canonicalization issues](https://developers.google.com/search/docs/crawling-indexing/canonicalization-troubleshooting) developers.google.com · checked 2026-10-24

## Keep learning

[All glossary](/glossary)

[Learn URL parameters Crawling and indexing](/glossary/url-parameters) [Related XML sitemap Crawling and indexing](/glossary/xml-sitemap) [Read next Duplicate content Crawling and indexing](/glossary/duplicate-content) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Case study](/glossary/case-study) [Category pages](/glossary/category-pages)

More in Crawling and indexing
[X-Frame-Options](/glossary/x-frame-options) [X-Robots-Tag](/glossary/x-robots-tag) [XML sitemap](/glossary/xml-sitemap) [301 redirect](/glossary/301-redirect) [302 redirect](/glossary/302-redirect) [410 Gone](/glossary/410-gone) [A record (DNS address record)](/glossary/a-record) [Bing Webmaster Tools](/glossary/bing-webmaster-tools) [Bot management](/glossary/bot-management) [Broken links](/glossary/broken-links) [cache: search operator](/glossary/cache-search-operator) [Canonical HTTP header](/glossary/canonical-http-header) [Canonical URL](/glossary/canonical-url) [Client-side rendering](/glossary/client-side-rendering) [Crawl budget](/glossary/crawl-budget) [Crawl errors](/glossary/crawl-errors) [Crawl stats report](/glossary/crawl-stats-report) [Duplicate content](/glossary/duplicate-content) [Dynamic serving](/glossary/dynamic-serving) [ETag](/glossary/etag) [Google Indexing API](/glossary/google-indexing-api) [Google Search Console](/glossary/google-search-console) [HTML sitemap](/glossary/html-sitemap) [HTTP status codes](/glossary/http-status-codes)

Terms on this page
[Duplicate content](/glossary/duplicate-content) [HTTPS](/glossary/https) [robots.txt](/glossary/robots-txt) [URL Inspection tool](/glossary/url-inspection-tool) [Google Search Console](/glossary/google-search-console) [Internal links](/glossary/internal-links) [SERP](/glossary/serp)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
