Guide · URLs

Canonical versus redirect

A canonical link and a redirect both deal with duplicate or moving URLs, but they do different jobs. A canonical is a signal about the preferred URL when several URLs serve the same or similar content. A redirect sends a visitor or crawler to a different URL.

Choosing the wrong one creates the problem it was meant to solve: a canonical that points to a redirect, a redirect chain that hides the final page, or a site that tells three different tools three different stories.

The short comparison

Canonical link301 redirect
What it doesNames the preferred URL while the page remains accessible.Sends the request to a different URL.
Best forDuplicate or near-duplicate URLs that should both remain reachable.A permanent move where the old URL should no longer serve the page.
Visitor experienceStays on the URL they opened.Lands on the new URL.
Crawler behaviorA hint; the search engine can choose a different canonical.A strong signal that the old URL has moved.
Common mistakePointing every page to the home page.Chaining several redirects or redirecting to a 404.

Duplicate URLs that need a decision

Small sites collect URL variants quickly:

  • http://example.com/page and https://example.com/page
  • https://example.com/page and https://www.example.com/page
  • https://example.com/ and https://example.com/index.html
  • https://example.com/guides and https://example.com/guides/
  • https://example.com/page?utm_source=newsletter and the clean URL
  • A product page reachable through two category paths

The first four are usually best handled with a redirect at the server or CDN: one canonical host, one protocol, one index form. The last two are often better handled with a canonical link because both URLs may need to remain useful.

When a canonical is the better tool

  • Two URLs serve substantially the same content and both need to remain accessible.
  • A tracking or filter parameter creates a duplicate of a page that should still work.
  • A product or article is reachable through more than one navigation path.
  • A CMS produces a print, AMP or syndicated version that should not compete with the main page.

The canonical should point to a substantially equivalent page with the same intent. Pointing every page to the home page does not turn unrelated pages into one page; it discards useful signals and confuses the reader.

<link rel="canonical" href="https://example.com/guides/page-title">

Use the final preferred URL: the same protocol, host, path and trailing-slash convention you use in navigation and the sitemap. A self-referencing canonical on an ordinary page can make the preference explicit.

When a redirect is the better tool

  • A page has moved permanently and the old URL should no longer serve it.
  • Two sites or sections have been merged.
  • A URL structure changed and the old paths are no longer maintained.
  • A non-canonical host or protocol should never serve the page.

Use a 301 for a permanent move and a 302 only for a temporary one. Send the old URL directly to the final destination. A chain of three redirects is slower and easier to break than one hop.

Common mistakes

Canonical pointing to a redirect

If the canonical URL itself redirects, the signal is ambiguous. Point the canonical at the final 200 URL. The same rule applies to the sitemap and internal links.

Redirecting to a page that returns 404

A redirect is only useful if the destination exists. Check the final status after deployment.

Mixing www, http and trailing slashes

One page may be reachable through four forms. Pick one form, redirect the others, and use it consistently in the canonical, sitemap, navigation and internal links.

Using noindex and canonical together carelessly

If a page is noindex, a canonical on that page may not have the effect you expect. Decide whether the page should exist in search results at all. If it should not, noindex is the clearer signal. If it should, remove the noindex and use the canonical.

Redirecting everything to the home page

A removed page with no equivalent should return a useful 404 or 410, not a redirect to the home page. A home-page redirect tells the crawler that every old URL is now the home page, which is rarely true.

How to check the signals agree

  1. Pick the preferred URL. Write it down, including protocol, host, path and trailing slash.
  2. Check the page's canonical. Use the meta tag checker. There should be one canonical and it should be absolute.
  3. Check the live response. Fetch both the old and the new URL. Confirm the status and the final URL.
  4. Check the sitemap. It should list the preferred URL, not the redirect or the duplicate.
  5. Check internal links. Navigation, breadcrumbs and body links should use the preferred form.
  6. Check robots.txt. Do not block the URL you want crawled. A disallowed URL cannot pass a canonical or noindex signal reliably.

What the tools cannot tell you

  • Which URL a search engine will ultimately treat as canonical after crawling and consolidation.
  • Whether a redirect is cached or served differently by a CDN.
  • Whether an old URL is still indexed. Use Search Console for that.
  • Whether a canonical is appropriate for two pages with different content. That is an editorial decision.

Sources

Written and tested by Mark. The duplicate URL examples were checked with the meta tag checker and the robots.txt inspector. The guide describes the signals; it does not promise how a search engine will consolidate a specific pair of URLs.

Found an error? Use the corrections page. Last updated 2026-11-23.