SEO
Canonical URL: how to tell Google which version to index
The essentials
- The canonical states the main address of a page when several addresses share the same content.
- Normally each page points to itself. If it points elsewhere, Google indexes the other one.
- It is a hint, not an order: Google ignores it when it contradicts other signals.
- One canonical per page, with the full address and https.
What it is
<link rel="canonical" href="https://yoursite.com/services/">
The same page can open at many addresses: with and without www, with campaign parameters, with filters, with capitals. To a search engine those are different pages with the same content. The canonical says which one is the main one, and the signals are pooled there.
When you need it
- Always, pointing to itself. It protects the page from variants you do not control, such as
?utm_source=. - On a store’s filters and sort orders, pointing to the category without parameters.
- On content published in two places, pointing to the original.
For pages that should not appear on Google, the tool is noindex, not the canonical. More in noindex: how to take a page out of Google, or bring it back.
Why Google ignores it
- There are two or more different canonicals on the same page, often from two plugins.
- It points to an address that redirects or returns 404.
- It contradicts the sitemap or internal links, which use another address.
- It points to a page with different content. Google decides it is not a duplicate.
Check it
Check your page’s canonical
Rules to get it right
- Full address, with
https://and the domain. - The same version the sitemap and internal links use: with or without www, with or without a trailing slash.
- A single tag, in the
<head>. - On multilingual sites, each language is its own canonical; the versions connect through hreflang.
ToolURL auditor →