---
title: "Canonical URL"
description: "Canonical URL: why content ends up with several URLs, how to tell Google which version to use and what WordPress already does for you."
language: "en"
locale: "en-US"
type: "definition"
canonical: "https://www.wp-feint.com/glossary/canonical-url/"
published: "2026-10-28T08:00:00+00:00"
modified: "2026-11-22T12:08:48+00:00"
translations:
  en-US: "https://www.wp-feint.com/glossary/canonical-url/index.md"
  fr-FR: "https://www.wp-feint.com/fr/definitions/url-canonique/index.md"
  es-ES: "https://www.wp-feint.com/es/glosario/url-canonica/index.md"
  de-DE: "https://www.wp-feint.com/de/glossar/canonical-url/index.md"
  it-IT: "https://www.wp-feint.com/it/glossario/url-canonico/index.md"
  pt-BR: "https://www.wp-feint.com/pt/glossario/url-canonica/index.md"
  nl-NL: "https://www.wp-feint.com/nl/woordenlijst/canonieke-url/index.md"
---

# Canonical URL

The canonical URL is the address a search engine keeps as the reference version when the same content is available at several URLs. Site owners indicate it with a rel="canonical" tag, a redirect or the sitemap, but Google remains free to choose another version.

The same content is often reachable at several URLs without anyone intending it: with and without `www`, over `http` and `https`, with tracking or sorting parameters, as a printable version. For the search engine, these are separate pages with identical content. Rather than showing them all, Google groups them and picks one, the canonical page; the others are treated as duplicates and crawled less often. What's at stake for you: making sure the version it keeps is the one you want to see in the results.

## How to specify the canonical URL

Google describes several signals of varying strength:

- **A [permanent redirect](https://www.wp-feint.com/glossary/301-redirect/)**: a strong signal, to use when the old URL no longer has any reason to exist (moving to HTTPS, choosing the domain with or without `www`).
- **The `rel="canonical"` tag** in the HTML head, or the HTTP `Link` header for a PDF: a strong signal, when the variants need to stay accessible to visitors.
- **Inclusion in the [sitemap](https://www.wp-feint.com/glossary/xml-sitemap/)**: a weak signal, but one that points the same way.

```
<link rel="canonical" href="https://example.com/guide/">
```

![On the left, four duplicate variants of the same page: http://example.com/guide/, https://www.example.com/guide/, the same URL with ?utm_source=newsletter and with ?sort=price. On the right, the canonical URL https://example.com/guide/, set by rel=canonical, 301 redirect and sitemap, the only version shown in the results and the one that receives the signals of the variants. Note: these methods state your preference, Google has the final say.](https://www.wp-feint.com/media/2026/10/variantes-url-canonique-en.webp)

A key point: Google reminds us that your stated preference is a hint, not a rule. If your signals contradict each other (canonical pointing to A, sitemap and internal links pointing to B), it may choose a different URL from yours. The URL Inspection tool in Search Console shows both the user-declared canonical and the one Google selected.

*Video: “Canonical URLs: How Does Google Pick the One?” (Google Search Central)*

## Best practices

- **An absolute URL** in the tag, with the protocol and domain.
- **A self-referencing canonical on the canonical page itself**, pointing to its own URL.
- **A single markup method**: the HTML tag or the HTTP header, not both.
- **Consistent signals**: internal links, the sitemap and [hreflang](https://www.wp-feint.com/glossary/hreflang/) tags should all point to the canonical URLs.
- **No [robots.txt](https://www.wp-feint.com/glossary/robots-txt/)** to handle duplicates, and no `noindex` to choose the canonical within a site: Google explicitly advises against both.

The broader issue of identical or very similar pages is covered in our definition of [duplicate content](https://www.wp-feint.com/glossary/duplicate-content/).

## For WordPress

WordPress automatically adds a canonical tag to individual content (posts, pages, custom post types), a feature that has existed since version 2.9. It doesn't do so for archives, categories or the posts page: SEO plugins fill that gap and let you set a custom canonical for a given page, which is useful when an article is republished elsewhere. Also check that the site address (Settings > General) uses the right protocol and domain: it is the basis for the generated canonicals.

Changing the URL of technical files or masking WordPress doesn't affect the URLs of your content, and therefore not their canonicals either. Special cases, such as images served from a different URL, are covered in [our article on masking and SEO](https://www.wp-feint.com/hide-wordpress-seo-impact/).

## Related terms

- [Duplicate content](https://www.wp-feint.com/glossary/duplicate-content/)
- [301 redirect](https://www.wp-feint.com/glossary/301-redirect/)
- [XML sitemap](https://www.wp-feint.com/glossary/xml-sitemap/)
- [Hreflang](https://www.wp-feint.com/glossary/hreflang/)
- [Indexing](https://www.wp-feint.com/glossary/indexing/)


## Sources

- [Google Search Central : qu’est-ce que la canonicalisation](https://developers.google.com/search/docs/crawling-indexing/canonicalization)
- [Google Search Central : indiquer une URL canonique](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
- [WordPress Developer Resources : rel_canonical()](https://developer.wordpress.org/reference/functions/rel_canonical/)
