Glossary · SEO and AEO

Canonical URL: what it is and how to set it

A canonical URL is the single preferred address for a page that can be reached through several URLs, declared with a rel=canonical link so search engines index and rank that version instead of the duplicates.

Why it matters

Why canonical URLs matter

SaaS sites create duplicates without trying: tracking parameters on campaign links, trailing-slash variants, http and https, preview domains, CMS pagination and filter pages. Each duplicate splits signals and wastes crawl budget, and the version Google picks may not be the one you want people to land on.

Canonicals tell search engines which version is the real one. Google treats them as a strong hint rather than a command, so they work best when every other signal agrees: internal links, sitemaps and redirects all point to the same URL.

Our approach

How we handle it

Every page we build declares a self-referencing canonical with an absolute URL on your production domain. Preview and staging domains are either blocked from indexing or canonicalized to production. Sitemaps list only canonical URLs, and internal links use the same form, including the trailing slash.

A check script compares each page’s canonical with its real path before launch. It runs in the Ship step of our process and in ongoing technical SEO and AEO work, and it matters most in website migrations.

Related service: SEO & AEO · How we work

Example

Canonical URL in practice

Each page on this site is generated with <link rel="canonical"> pointing at its address on the main domain, even when the site is previewed under a different host. A campaign link such as /pricing/?utm_source=newsletter therefore still consolidates to /pricing/. The sitemap and the llms.txt file list the same canonical URLs.

Avoid

Common mistakes

  • Canonicalizing every page to the homepage. This tells search engines your pages are duplicates of one page. Use self-referencing canonicals.
  • Using relative or wrong-domain URLs. Use absolute URLs on the production domain, with the right protocol and slash style.
  • Conflicting signals. A canonical that disagrees with redirects, sitemaps or internal links gets ignored.
  • Pointing canonicals at non-200 pages. A canonical target must be live and indexable.
  • Assuming Google must follow it. A canonical is a hint, not a command. Google may pick a different URL when the other signals disagree, so make them agree.
How to

How to add a canonical tag

Add one canonical tag to the <head> of each page, with the absolute URL of the version you want indexed. On the page itself it points to its own address (self-referencing):

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

Then make the other signals agree: the sitemap lists only canonical URLs, and internal links use the same form, protocol and trailing slash.

Compared

Canonical tag or 301 redirect?

Canonical tag301 redirect
Visitor still sees the pageYesNo, they land on the new URL
Credit moves to the preferred URLYes, as a strong hintYes
Use whenDuplicates must stay reachable, such as tracking parametersThe old URL should no longer be visited
FAQ

Questions about canonical URL

What is a canonical URL?
A canonical URL is the preferred address of a page that can be reached at more than one URL. You declare it with a rel=canonical link, and search engines index that version instead of the duplicates.
Is a canonical tag the same as a redirect?
No. A redirect sends visitors and crawlers to another URL. A canonical keeps the page accessible but asks search engines to credit another URL. Use redirects when the old URL should no longer be visited.
Does every page need a canonical tag?
It is good practice. A self-referencing canonical on each page protects it against parameter and protocol duplicates you don’t control.
Can Google ignore my canonical tag?
Yes. Google treats rel=canonical as a strong hint, not a command, and may choose another URL when other signals, such as redirects, sitemaps or internal links, disagree.
Should a canonical URL be absolute or relative?
Absolute, on the production domain, with the right protocol and trailing-slash style.
Thomas OldenburgerFounder, design and build lead

Still deciding? A 30-minute call answers most of it.

Got a brief, or half of one?

Book a free 30-minute call. You leave with a straight answer on scope, price and timing, even when we are not the right fit.