Jump to content
KUHM

Canonical tag or 301 redirect: deciding case by case

Posted on - Updated

Canonical tag or 301 redirect: deciding case by case

A 301 redirect is the right choice when the old URL no longer has any reason to exist for the visitor; the canonical tag is for when two versions of a content remain accessible. In the canonical vs 301 duel, Google treats the 301 as an order and the canonical as an SEO signal it can ignore.

A duplicate page almost always comes from a technical constraint: a category filter that adds a parameter, campaign tracking, a printable version, a switch to HTTPS or an article republished by a partner. Both tools solve the same problem, the dispersion of SEO signals across several addresses, but they do not say the same thing to the bot. Choosing the wrong one amounts to letting Google decide on its own, and its choice will not necessarily match yours.

What is the difference between canonical and 301?

The 301 redirect is a server response: when a browser or Googlebot requests the old URL, the server answers “moved permanently” and sends it to the new address. No one sees the source page anymore, neither the user nor the bot. The canonical tag, by contrast, is a mention placed in the page's HTML code (or in the HTTP header) that designates the reference URL; the page is still displayed normally to whoever requests it.

This distinction changes how Google treats each method. Its documentation on consolidating duplicate URLs ranks redirects among the strong canonicalization signals, the rel="canonical" tag too, and inclusion in a sitemap among the weak signals. The nuance lies in whether it is mandatory: a 301 is executed, while a canonical tag is read and then weighed against the other clues (internal links, sitemap, whether the content is really identical or not). Google itself calls it a hint, not a directive.

The table compares the two methods on the criteria that decide in practice.

Criterion301 redirectCanonical tag
Old URL visibleNo, the visitor lands on the targetYes, the page displays normally
Nature for GoogleHTTP response that is executedHint weighed against other signals
ImplementationServer (.htaccess, nginx, CMS)Tag in the head or HTTP Link header
Crawling of the duplicate pageThe bot follows the redirect, the source gradually drops out of the indexThe page is still crawled, which consumes crawl
Typical casesURL change, domain change, switch to HTTPS, page mergeParameters, filters, sorting, printable version, syndicated content
Main riskRedirect chains and loopsTag ignored if the signals contradict each other

When should you use a 301 redirect?

The 301 redirect is right as soon as the old address has no use of its own. The most common case is a redesign: a URL changes structure, a category disappears, two articles covering the same topic merge into one. Keeping the old page online with a canonical pointing to the new one brings nothing to the visitor, who would land on an outdated text; the 301 takes them straight to the right place and passes along most of the link juice from the backlinks already earned.

A domain name change is also a 301 job, page by page, never to the home page alone: the method for redirecting an old domain name to the new one details the line-by-line mapping in the .htaccess file. Switching from HTTP to HTTPS and unifying the www and non-www variants follow the same logic: a single version must answer with a 200, and all the others redirect to it.

One precaution applies to every redirect: point to the final destination, in a single hop. A chain of three or four redirects slows the user down, dilutes crawling and ends up making the bot give up. During a migration, auditing the old redirects avoids building a new layer on top of the previous ones.

In which cases is the canonical tag the right answer?

The canonical tag is used when several URLs must remain accessible because they are useful to the user, while displaying identical or nearly identical content. An online store provides the clearest example: the same product page can respond at /shoes/leather-derby, /sales/leather-derby and /leather-derby?color=black. Removing these paths would break navigation; a canonical tag on each, pointing to the main address, groups the signals without taking anything away from the visitor.

Tracking parameters (utm_source, session IDs), list sorting and printable versions fall under the same framework. So does syndication: when a blog article is republished on another site with your agreement, a cross-domain canonical to the original helps Google attribute authorship of the content, even though nothing forces it to follow it. On a more modest site, duplicates between the root, index.php and index.html are better handled with a 301, since nobody needs those three addresses.

Pagination is an exception. Google advises against pointing page 2, 3 or 4 of a list to page 1: each page carries links to different products or articles, and a canonical to the first would hide that content. Each paginated page keeps its own self-referencing canonical URL.

A three-question test to decide

  1. Does a visitor still have a reason to land on the old URL and stay there? No: 301.
  2. Do the two URLs display the same main content, word for word or nearly? No: neither one nor the other, these are two distinct pages to differentiate.
  3. Must the duplicate version stay online for a technical or commercial reason (filter, campaign, partner)? Yes: canonical tag.

How do you set up a canonical tag?

The canonical tag is written in the head section of the HTML code, in the form <link rel="canonical" href="https://www.example.com/page/">. Three technical rules avoid most mistakes: an absolute URL with protocol and domain name, a single tag per page, and a target that answers with a 200, neither redirected, nor a 404, nor blocked in the robots.txt file. A canonical pointing to a noindex address sends two opposite instructions.

Every indexable page benefits from a self-referencing canonical, that is, one pointing to its own URL. This precaution neutralizes variants created without the webmaster's knowledge: parameters added by an ad network, capital letters in the path, a trailing slash present or absent. Most CMSs, and SEO plugins on WordPress, add it by default; a check remains useful after each theme upgrade.

For a PDF file or any resource without a head tag, the HTTP header takes over: Link: <https://www.example.com/guide.pdf>; rel="canonical". The setting is made on the server side, in the .htaccess or the nginx file. Finally, the XML sitemap lists only canonical URLs: entering duplicate addresses in it contradicts the tag.

Contradictory signals: what problems can a bad redirect cause?

A contradictory signal appears when the canonical tag designates one URL and the rest of the site designates another. Internal linking that points to the parameter version, a sitemap that lists the variant, external links concentrated on the non-canonical URL: Google adds up these clues and may pick a different page from the one declared. The tag then loses all effect, with no visible error message.

The most frequent cases in a technical SEO audit:

  • canonical pointing to a URL redirected with a 301, which creates a signal loop between two pages;
  • canonical copied by the template onto all pages of a category, pointing to the section's home page and removing dozens of product pages from the index;
  • canonical in HTTP on a site that has moved to HTTPS;
  • canonical and noindex combined on the same page, which Google may interpret as a request to remove the target itself;
  • 301 redirect to an unrelated page, which Google often treats as a soft 404 error.

The underlying rule comes down to one word: consistency. Internal links, sitemap, redirects and tags must all designate the same canonical URL. A 301 redirect rarely causes this problem, since it leaves no duplicate page to interpret.

Crawl budget and search engines: what each method costs

A search engine's crawl is not unlimited: on a website with several thousand URLs, every duplicate crawled takes the place of a useful page. A 301 redirect solves the issue at the source, since Googlebot gradually stops requesting the abandoned URL. A canonicalized page, on the other hand, keeps being crawled regularly: the engine must download it to read the tag and check that the content remains identical to the original version. On a store where filters generate thousands of combinations, this duplication slows the indexing of new product pages.

Bing also recognizes the canonical tag and 301 redirects; its webmaster guidelines ask, like Google's, for a canonical URL consistent with the sitemap and the internal linking. For SEO that targets several search engines, the 301 remains the cleanest solution when the duplicate has no reason to exist.

On the content side, a common mistake is to link two merely similar pages with a canonical, for example two city pages with almost identical text. Google often ignores the tag when the main content differs: the real answer is a text specific to each page, or a merge by 301 if one adds nothing. An SEO agency auditing a site often starts by sorting true duplicates from merely similar pages, before any decision on indexing.

Checking Google's choice in Search Console

Google Search Console reveals the URL that Google actually selected. The URL Inspection tool displays side by side “User-declared canonical URL” and “Google-selected canonical URL”: a gap between the two signals that the tag did not convince. The page indexing report groups these cases under statuses such as “Duplicate, Google chose different canonical than user” or “Alternate page with proper canonical tag”, the latter being the expected result.

On the redirect side, the Search Console crawl stats break down Googlebot's requests by response code: a rising share of 301s with no migration under way often betrays internal links that were never updated. The remedy is to fix those links so they point directly to the destination, rather than relying on the redirect.

A delay of a few weeks is normal before Google reflects a canonical change on a large site: the bot has to revisit every page. Google's documentation on consolidating duplicate URLs describes all the methods and their respective weight.

Pagination, PDFs, domain change: canonical or 301 in edge cases

Can you combine a canonical tag and a 301 redirect?

A single page cannot carry both: a URL redirected with a 301 displays nothing, so its tag will never be read. Combining them makes sense at the site level, the 301 for abandoned addresses and the canonical for variants that stay online, provided that the target of each canonical is not itself redirected.

Does a canonical pass on link popularity like a 301?

A canonical that Google respects consolidates signals, links included, to the designated URL, as a 301 does. The difference is reliability: the redirect is applied for sure, the tag only if Google judges it consistent with the rest of the site.

Should you use a canonical or a 301 for a domain name change?

A domain change calls for a 301, page by page, along with Search Console's change of address tool. A cross-domain canonical would leave the old site accessible and slow down the transfer of signals, with no benefit to the user.

Is a canonical enough to avoid a duplicate content penalty?

Internal duplicate content does not lead to a penalty in the strict sense: Google picks one version and leaves the others out of its results. The canonical tag is used to steer that choice toward the right URL rather than to avoid a sanction. The other articles on Cyril Kuhm's SEO blog cover neighboring signals, such as the title tag or loading speed.

About the author

Cyril KUHM

Cyril KUHM

Head of MKH, a web agency near Strasbourg, and SEO consultant since 2007. On this blog I share free, hands-on advice to help your site rank better on Google.

Get in touch

Related posts

↑