Back to Blog

SEO

301 redirect or canonical? Which to use and when

Admin User
301 redirect or canonical? Which to use and when

If the same content is reachable at several addresses on your site, or you've permanently moved a page, one of two tools comes into play: a redirect or a canonical. They're often used interchangeably, but they do different jobs.

First look at the cause: where does duplicate content come from?

Google's canonicalization documentation lists common causes: both http and https versions being live, www and non-www addresses, separate URLs for mobile and desktop, filter and sorting parameters, even a test (demo) site that got indexed by accident. In those cases Google tries to pick a single URL as the "canonical."

301 redirect: moves users and bots

The server tells everyone who requests the old address "this page has moved permanently." According to Google's documentation, 301 and 308 are permanent redirects and strongly increase the chance the target URL becomes canonical. 302, 303 and 307 are temporary and may keep the old URL in the index.

When to use it:

  • When you change a page's address (slug update, site migration),
  • Moving from http to https, or to a non-www version,
  • For deleted pages that have a replacement,
  • When merging old and new pages.

Redirect server-side (with an HTTP status code) wherever possible; meta refresh and JavaScript redirects are less reliable fallbacks. Avoid redirect chains (A→B→C) and send people straight to the final destination.

Canonical: the user stays, Google gets a hint

The <link rel="canonical" href="..."> tag states which version is the main one for similar content living at several addresses. The key point: it's a hint, not a command. Google may choose a different URL.

When to use it:

  • Product listing variants generated by filter / sort parameters,
  • Addresses carrying tracking parameters (utm and so on),
  • When users still need access to both addresses (a print version, for example).
  • Having a self-referencing canonical on every page is a good habit.

Decision table

SituationSolution
Page address permanently changed301
http / www variants301 + consistent internal links
Parameter variants must remaincanonical
Same content on another domain (syndication)canonical (to the original)
Multilingual versionsnot canonical - use hreflang (each language self-canonical)

Don't

  • Combine canonical with noindex as a "mix"; it sends conflicting signals.
  • Point every page's canonical at the home page.
  • Canonicalize translated pages to the original; the translation then drops out of the index.

To check the canonical and redirect state of your site, see the technical SEO audit checklist.

Sources