Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

301 Redirect vs Canonical: How to Choose the Right Fix for Duplicate and Moved Pages

301 redirect or canonical tag? Learn the real difference, how Google weighs each signal, concrete cases, server code, common mistakes and an audit checklist.

Published on
27/11/2026
Updated on
27/11/2026
Reading time
18 min
301 Redirect vs Canonical: How to Choose the Right Fix for Duplicate and Moved Pages

Tools

On this page

In short

A 301 redirect is a server instruction that moves a URL for good: users and bots land on the new page. A canonical tag is a hint naming which live duplicate should rank; both pages stay reachable and Google may ignore it. Use a 301 when the old URL no longer needs to exist, a canonical when it does.

Want to go further? Ask

Quick quiz

Who should fix the technical side of your site?

Question 1 of 425%
What is happening today?

301 redirect vs canonical: the short answer

The difference fits in one sentence: a 301 removes a URL from the user's path, a canonical keeps it but asks Google to credit another URL. Everything else follows from that.

Ask yourself one question: does a human still need to see the duplicate page? If no, redirect it. If yes (a filtered product list, a tracking URL, a printable version, the same article republished on a partner site), keep it live and point its canonical to the main version.

301 redirect vs canonical tag at a glance

301 redirect
  • Server-side, applied to every visitor and bot
  • Strongest canonical signal for Google
  • Old URL drops out of the index
  • Old page is no longer viewable
  • Needs server or CMS access
Canonical tag
  • Both pages stay usable
  • Works across domains
  • Easy to set in a CMS template
  • A hint: Google can choose another URL
  • Ignored if other signals disagree

Neither one is "better". They answer two different situations. The table below gives the technical differences that matter when you have to choose.

Criterion301 redirectCanonical tag (rel="canonical")
NatureHTTP status code sent by the serverLink element in the HTML head, or HTTP Link header
Binding?Yes for browsers and bots: the old page is never servedNo: "a hint, not a rule" for Google
What users seeOnly the target URLThe page they asked for
What Google indexesThe target (permanent redirect)Usually the declared canonical, if other signals agree
Crawl costOne extra request per hop, then the old URL is crawled lessGoogle still crawls every duplicate
Cross-domainYesYes
Typical useMoved, merged or deleted pages; HTTPS, www, domain changeParameters, filters, sorting, variants, syndication
Who sets it upDeveloper, host or CMS redirect moduleTemplate, SEO plugin, CMS field

What a 301 redirect does, technically

A 301 redirect is an HTTP response with the status code 301 (Moved Permanently) and a Location header that gives the new address. The browser or the bot never receives the old page body: it requests the new URL instead.

GET /old-shoes-page HTTP/1.1
Host: www.example.com

HTTP/1.1 301 Moved Permanently
Location: https://www.example.com/running-shoes/
Cache-Control: max-age=3600

Google's documentation on redirects and Google Search explains that a permanent redirect makes Google "show the new redirect target in search results", while a temporary one keeps the source page in results. It also recommends "a permanent server-side redirect whenever possible". For the full family of status codes, our guide to 301, 302, 307 and 308 redirects for SEO goes deeper.

301 vs 308

Google treats 301 and 308 the same way: both mean "moved permanently". The only difference is for the request method. A browser may turn a POST into a GET when it follows a 301; a 308 keeps the method and the body. For normal pages, use 301. For an API endpoint or a form target that moves, use 308.

Meta refresh and JavaScript redirects

When you cannot touch the server (some hosted site builders), you still have two options. Google reads an instant meta refresh (content="0") as a permanent redirect and a delayed one as temporary. A JavaScript redirect only works if Google renders the page, so Google lists it as the last resort. Most AI crawlers do not run JavaScript at all, so they will never see it.

<meta http-equiv="refresh" content="0; url=https://www.example.com/running-shoes/">

The ranking signals of the old URL (links, history) are consolidated on the target, which becomes the canonical. That is why a 301 is the standard tool for a domain change or an HTTPS move. Google's site move guide asks you to keep redirects "for as long as possible, generally at least 1 year", so Google has time to transfer signals and visitors with old bookmarks still land somewhere useful.

Tip

Before you ship a batch of redirects, paste a few old URLs in our free redirect chain checker. It shows every hop and its status code, so you catch a 302 or a chain before Google does.

Illustration comparing a 301 redirect, where an old page sends everything to a new page, with a canonical tag, where similar pages point to one main page.
A 301 redirect moves the URL for everyone; a canonical tag keeps duplicates live and names the main version.

What a canonical tag does, technically

A canonical tag is a link element with rel="canonical" that tells search engines which URL you prefer to see indexed for a piece of content. The page that carries it stays live and works normally for visitors.

<!-- On https://www.example.com/running-shoes/?color=blue&sort=price -->
<link rel="canonical" href="https://www.example.com/running-shoes/">

For files with no HTML head (PDF, images), you send the same information in an HTTP header:

HTTP/1.1 200 OK
Content-Type: application/pdf
Link: <https://www.example.com/guides/size-chart/>; rel="canonical"

If you need a refresher on the tag itself, see our glossary entry on the canonical tag and duplicate content.

Why it is only a hint

Google's canonicalization page says it plainly: "indicating a canonical preference is a hint, not a rule." Google groups duplicate URLs into a cluster, then picks one representative using several signals: HTTPS or HTTP, redirects, presence in the sitemap and rel="canonical". Internal links and content similarity also weigh in practice. If your canonical points to page A but your menu, sitemap and hreflang all point to page B, Google often picks B and reports "Duplicate, Google chose different canonical than user" in Search Console.

That is the key practical point: a canonical works when every other signal agrees with it. It fails when it is the only signal pulling in that direction.

How common canonical tags are

Canonical tags are now standard on most of the web, and most of them are simple self-references. The HTTP Archive's Web Almanac 2024 SEO chapter measured them across millions of pages.

Canonical tags on the web in 2024

65%of mobile pages use a canonical tag (61% in 2022)
8%of mobile pages are canonicalized to another URL
0.8%of pages send conflicting canonicals (HTTP header vs HTML)
98%of pages with a canonical pass the Lighthouse validity audit

Source: HTTP Archive, Web Almanac 2024, SEO chapter

Where mobile pages declare their canonical

Rendered HTML65%
Raw HTML64%
HTTP header1%

Source: HTTP Archive, Web Almanac 2024, SEO chapter

HTTP Archive Web Almanac 2024 SEO chapter with measurements of canonical tag usage across the web
Source: HTTP Archive, Web Almanac 2024, SEO chapter

How Google decides between your signals

Google ranks the tools by strength: redirects first, then rel="canonical", then the sitemap. Its page on consolidating duplicate URLs lists them "in order of how strongly they can influence canonicalization" and calls a redirect "a strong signal that the target of the redirect should become canonical".

Google Search Central page listing redirects, rel canonical and sitemaps in order of how strongly they influence canonicalization
Source: Google Search Central, How to specify a canonical URL
SignalStrength (Google)What it does wellWhere it breaks
301 / 308 redirectStrongLeaves no doubt: only one URL can be servedKills the old page for users too
rel="canonical" (HTML or header)Strong, but a hintKeeps useful variants liveOverruled by contradictory signals
XML sitemap inclusionWeakConfirms your choice on a large siteNot enough alone
Internal linksSupporting signalShows which URL you really useMixed links blur the choice
HTTPS over HTTPSupporting signalGoogle prefers the secure versionUseless if both protocols are live

The lesson: stack the signals. A strong canonical setup is a canonical tag, plus internal links to the canonical URL only, plus a sitemap that lists the canonical URL only, plus hreflang that points to canonical URLs only.

All the ways to handle duplicate or moved URLs

301 and canonical are two of seven tools. Picking the right one is easier when you see all of them side by side.

1. Permanent redirect (301 or 308)

Principle: the server sends everyone to the new URL. When: the old URL has no reason to exist anymore. Pros: strongest signal, clean index, users never see stale content. Limits: needs server access; a wrong redirect is visible to every visitor. Example: /blog/2023/seo-tips moved to /blog/seo-tips after a URL clean-up.

2. Temporary redirect (302 or 307)

Principle: sends users elsewhere for now, the source stays the URL Google shows. When: maintenance, an out-of-stock product sent to its category for a few days, a geo or A/B test. Pros: reversible. Limits: left in place for months, Google may end up treating it as permanent, and you lose control of which URL ranks. Our comparison of 301 vs 302 redirects covers the details.

3. Canonical tag in HTML

Principle: the duplicate stays live and names its preferred version. When: parameters, sorting, filters, product variants, print versions, session IDs. Pros: no change for users, easy in templates. Limits: a hint; Google still crawls every variant. Example: /shoes/?sort=price points to /shoes/.

Principle: same message, sent by the server. When: PDF, image or any non-HTML file duplicated by an HTML page. Pros: works where there is no head. Limits: Google supports it for web search only, and only 1% of pages use it, so many crawlers and plugins never check it. Example: a downloadable PDF guide that points to its HTML version.

5. Noindex

Principle: the page stays live but must not appear in results. When: internal search results, thank-you pages, thin pages with no "main" version to credit. Pros: binding. Limits: no signal is consolidated anywhere; Google advises against it for canonicalization inside one site because "it will completely block the page from Search". See our page on the noindex directive.

6. 404 or 410

Principle: the page is gone and nothing replaces it. When: a discontinued product with no close equivalent, expired event pages with no links. Pros: honest, clean. Limits: backlinks to that URL are lost. If the page has good links, redirect it to the closest relevant page instead.

7. Robots.txt blocking

Principle: stops crawling. When: to save crawl budget on infinite URL spaces, never to pick a canonical. Limits: Google cannot read a canonical or a noindex on a page it cannot crawl. Google says it directly: "Don't use the robots.txt file for canonicalization purposes."

MethodPage stays reachable?Signals consolidated?Binding?Best for
301 / 308NoYes, to the targetYesMoves, merges, protocol and host changes
302 / 307No (for now)Source keeps themYes, temporarilyShort-term detours
Canonical (HTML)YesYes, if Google agreesNoParameters, filters, variants
Canonical (header)YesYes, if Google agreesNoPDF and non-HTML files
NoindexYesNoYesPages with no value in search
404 / 410NoNoYesDead content without links
Robots.txtYes, for usersNoFor crawling onlyCrawl waste, never duplicates

When to use a 301 redirect

Use a 301 every time a URL has been replaced and nobody needs the old one. These are the common cases:

  1. Domain change or rebrand. Every old URL goes to its exact equivalent on the new domain, page by page. Our site migration checklist gives the full mapping method.
  2. HTTP to HTTPS. One rule at the server, all HTTP URLs to their HTTPS twin. A canonical alone leaves both versions crawlable and linkable.
  3. www vs non-www, trailing slash, uppercase. Pick one form and redirect the others. The www vs non-www choice is a classic.
  4. URL structure change. You removed dates or categories from your blog URLs.
  5. Merging pages. Two articles compete on the same keyword (cannibalization). Merge the content into the stronger one and redirect the weaker one.
  6. Deleted product with a close replacement. Model 2026 replaced by model 2027: redirect. No real replacement: 404 or 410, not a redirect to the home page.

Merging two competing articles

Before
  • Two articles target the same keyword
  • Backlinks split between two URLs
  • Google swaps them in results
After a 301
  • One complete article
  • Links and history consolidated
  • One stable URL in results

When to use a canonical tag

Use a canonical when the duplicate must stay live for users or for your business, but should not compete in search.

  1. Tracking and session parameters. ?utm_source=newsletter, ?ref=partner, ?sessionid=. Redirecting them would break your analytics.
  2. Sorting and filters. ?sort=price, ?color=blue on a category page. Shoppers use them; Google only needs the main list. Our guide to faceted navigation for SEO explains which filters deserve their own indexable page.
  3. One product in several categories. /men/shoes/model-x and /sale/model-x. Point both to one clean product URL.
  4. Product variants with almost the same page. Sizes of the same shoe. If a color has real search demand ("red trail shoes"), give it its own self-canonical page instead.
  5. Syndicated content. Your article republished on a partner site, with a cross-domain canonical to your original.
  6. Print, AMP or alternate formats. The print view points to the main article.
  7. Self-referencing canonical on every indexable page. Google recommends it: it protects the page against unknown parameters added by other sites.

Tip

To see where a page's canonical really points (HTML and HTTP header), run it through our free canonical tag checker. It flags relative URLs, canonicals to redirected pages and missing self-references.

Edge cases where the choice is less obvious

Most real problems sit in the gray zone. Here is how to decide in the cases that come up in audits.

Can you use a 301 and a canonical together?

Not on the same URL: a page that returns a 301 is never rendered, so its canonical tag is never read. But you should use both in the same project. After a migration, the redirect handles old URLs and every new URL carries a self-referencing canonical. Google's site move guide asks for exactly that.

Canonical pointing to a redirected URL

Page A says its canonical is B, but B redirects to C. Google gets two signals that disagree with your intent. Fix the template so A points straight to C. The same rule applies to canonicals pointing to a 404, a noindex page or a URL blocked by robots.txt.

Cross-domain duplicates

If you own both sites (a .com and a .co.uk with the same English content), prefer hreflang if the audiences differ, a 301 if one site is useless. A cross-domain canonical fits syndication, but Google has said since 2023 that it may not follow it when the partner page differs a lot; asking the partner for a noindex is the safer path if ranking the original matters. Our hreflang guide covers the multilingual side.

Pagination

Never point page 2, 3 or 4 of a list to page 1. They hold different products or articles, so they are not duplicates, and Google may stop crawling the items they link to. Each paginated page gets a self-referencing canonical. See our pagination SEO guide.

Near-duplicate pages that rank for different queries

Two city pages with 90% identical text ("plumber Lyon", "plumber Villeurbanne") are not a canonical case if each targets a real local query. The fix is better content, not a canonical. A canonical would remove the second page from search.

JavaScript and AI crawlers

If your framework injects or changes the canonical in JavaScript, Google may see one value in raw HTML and another after rendering; the Web Almanac found rendering changed the raw canonical on about 2% of pages. Put the canonical in the server HTML. This matters even more for AI crawlers such as GPTBot or ClaudeBot: they follow an HTTP 301 like any client, but most do not render JavaScript and nothing guarantees they honor a canonical. For moved content you want cited in ChatGPT, Claude or Gemini answers, a server-side 301 is the only signal every bot understands.

How to choose and implement, step by step

This is the method we apply on every duplicate or moved URL. It takes a few minutes per pattern, not per page.

The 6-step decision method

  1. List the URL pairsExport duplicates from Search Console and a crawler, group them by pattern (parameters, protocol, old paths).
  2. Ask: does a user need the duplicate?No: plan a 301. Yes: plan a canonical. Gone with no replacement: 404 or 410.
  3. Pick the target URLHTTPS, final form, indexable, returns 200, the one with the most links and traffic.
  4. Implement at the right levelServer rules for patterns, CMS fields for single pages, templates for canonicals.
  5. Align the other signalsInternal links, sitemap, hreflang and structured data all use the target URL.
  6. Verify and monitorTest with curl, check URL Inspection, then the Page indexing report after 2 to 4 weeks.

Step 4 in practice: server rules

On Apache, a single-page 301 and a site-wide HTTPS plus www rule in .htaccess:

Redirect 301 /old-shoes-page https://www.example.com/running-shoes/

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]

On Nginx, the same logic:

server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://www.example.com$request_uri;
}

location = /old-shoes-page {
    return 301 https://www.example.com/running-shoes/;
}

Both rules send users to the final URL in one hop. A common mistake is two separate rules (HTTP to HTTPS, then non-www to www), which creates a chain of two redirects on every old link.

Step 4 in practice: canonical in a template

Build the canonical from a clean, absolute URL without the query string, unless a parameter really changes the content:

<link rel="canonical" href="https://www.example.com{{ page.path }}">

Google asks for absolute URLs: a relative href="/shoes/" works in theory but breaks as soon as a staging copy or a mirrored host serves the same HTML.

Step 6 in practice: test from the command line

# Follow redirects and print each status code
curl -sIL https://example.com/old-shoes-page | grep -iE "^HTTP|^location"

# Read the canonical in the HTML and in the headers
curl -s https://www.example.com/shoes/?sort=price | grep -io '<link[^>]*canonical[^>]*>'
curl -sI https://www.example.com/guide.pdf | grep -i "^link"

Expected result for a redirect: one 301, then one 200. If you see 302, two 301s in a row, or a final 404, fix it before going further.

Google Search Central documentation comparing permanent and temporary redirects and how Search shows each one
Source: Google Search Central, Redirects and Google Search

Common mistakes and how to fix them

These are the errors we find most often in technical audits. Each one is easy to spot once you know where to look.

1. Canonical used where a redirect was needed

What it is: after a migration, the old URLs still return 200 with a canonical to the new ones. How to spot it: old URLs still appear in "Alternate page with proper canonical tag" months later, and backlinks still point to them. Fix: replace with 301s. The canonical leaves two live sites; a 301 leaves one.

2. Redirecting variants users need

What it is: filter or tracking URLs redirected to the clean URL. How to spot it: campaigns lose their UTM data, filters "do nothing" for shoppers. Fix: remove the redirect, serve the page with a canonical.

3. Redirect chains and loops

What it is: A to B to C, or A to B to A. How to spot it: a crawler's redirect chain report, or curl showing several 30x lines. Fix: point every source straight to the final URL. Google's site move guide accepts chains but asks to keep them "ideally no more than 3 and fewer than 5" hops; one hop is the goal.

4. Mass redirect to the home page

What it is: every deleted page redirected to /. How to spot it: "Soft 404" in Search Console for those URLs. Fix: redirect to the closest relevant page, or return 410. Google treats irrelevant redirects like soft 404s and the signals are lost anyway.

5. Canonical contradicted by other signals

What it is: canonical to A, but menu links, sitemap and hreflang use B. How to spot it: "Duplicate, Google chose different canonical than user". Our article on duplicate without user-selected canonical covers the sister status. Fix: align every signal to the same URL, then request a new inspection.

6. Every page canonicalized to the home page

What it is: a template bug writes the home page URL into every canonical. How to spot it: a sudden drop in indexed pages; a crawl shows one canonical value for thousands of URLs. Fix: correct the template to output the page's own URL, then resubmit the sitemap.

7. Several canonical tags on one page

What it is: the theme and an SEO plugin each add one, or the header and HTML disagree. How to spot it: view source, search "canonical". Fix: keep one. When Google finds conflicting canonicals, it may ignore all of them.

8. Canonical with noindex on the same page

What it is: noindex plus a canonical to another URL. How to spot it: crawler "noindex + canonicalized" filter. Fix: pick one message. If the page is a duplicate, keep the canonical and drop the noindex.

9. Removing redirects too early

What it is: redirect rules deleted after a few weeks "because Google has updated". How to spot it: old backlinks now hit 404s. Fix: restore them and keep them at least one year, ideally forever for URLs with backlinks.

10. Using a 302 for a permanent move

What it is: the CMS default redirect is a 302. How to spot it: curl shows 302 Found; the old URL stays in results. Fix: switch to 301 or 308.

How to audit redirects and canonicals on your site

Search Console tells you what Google decided; a crawler tells you what you declared. Compare the two. Start with the Page indexing report and the URL Inspection tool described in our Google Search Console tutorial.

Search Console statusWhat it meansAction
Page with redirectThe URL redirects; the target is indexed insteadNormal for old URLs. Check internal links don't still use them
Alternate page with proper canonical tagGoogle followed your canonicalNormal. Details in our article on alternate pages with a proper canonical
Duplicate, Google chose different canonical than userGoogle ignored your canonicalAlign signals, or accept Google's choice if it is better
Duplicate without user-selected canonicalNo canonical declared, Google picked oneAdd self-referencing canonicals
Soft 404A page (often a redirect target) looks empty or irrelevantRedirect to a relevant page or return 410

Redirect and canonical audit checklist

  • Every indexable page has one self-referencing, absolute canonical
  • No canonical points to a 3xx, 4xx, noindex or blocked URL
  • HTTP, non-www and trailing-slash variants 301 to one form in one hop
  • No redirect chains longer than one hop on internal links
  • Internal links and sitemap only use canonical, 200 URLs
  • Hreflang annotations point to canonical URLs
  • Old migration redirects still live after one year
  • No robots.txt block on URLs that carry a canonical
  • No mass redirect of deleted pages to the home page

Run this checklist after every release that touches templates, URLs or the CMS. Most canonical disasters come from a theme or plugin update, not from a human decision. If you want a quick yes or no on one URL, our indexability checker tests status code, canonical, noindex and robots.txt together.

Keep duplicates from appearing in the first place

The best redirect is the one you never need. Most duplicates come from publishing two pages for the same intent, then fixing it later with a canonical or a 301. Plan one URL per search intent before you write.

That is the logic behind Sorank's topic cluster generator with built-in anti-cannibalization: each article in the plan targets its own keyword, so new content does not create competing pages that you later have to merge and redirect.

What to do today: take your 20 most linked URLs, run them through a redirect checker, and confirm each one answers 200 with a self-canonical, or 301 to its final page in one hop. Then open the Page indexing report and read the "Google chose different canonical" list. Those two checks fix most of the value lost to redirects and canonicals.

Frequently asked questions

Is a canonical tag as good as a 301 redirect for SEO?

Not in strength. Google lists redirects as the strongest canonicalization signal, while a canonical tag is a hint it can ignore if other signals disagree. Use a canonical only when the duplicate page must stay reachable for users.

Can I use a 301 redirect and a canonical tag on the same page?

No, a page that returns a 301 is never rendered, so its canonical is never read. In the same project you use both: 301s for the old URLs and a self-referencing canonical on every new URL.

How long should I keep 301 redirects in place?

Google's site move guide says to keep them as long as possible, generally at least one year. For URLs with backlinks, keeping them forever is the safest choice, since old links keep sending visitors and signals.

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.Profile photo of Xavier Breull, Sorank customer
Google
Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.
5/5
+5,000
users

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel