Skip to content

Canonical tag and redirect checklist: 43 rules

The same page can be reachable under several URLs: with and without www, over HTTP and HTTPS, with tracking parameters or in different letter case. Canonical tags and redirects tell Google which URL you prefer. Google makes the final choice itself, based on all signals.

Check the host variants first: HTTP, HTTPS, with and without www should reach one single URL through a 301 or 308. Then the canonical tags: one element in the head, an absolute URL, and a target that responds directly with 200 and matches the sitemap and internal links.

43 rules35 run dailyGoogle evidence checked on

Backed by Google20 · 47%
Google’s documentation recommends what the rule checks.
Partly backed21 · 49%
Google backs part of the rule. The rest goes further or is narrower.
No Google statement2 · 5%
Google does not address it directly. That does not make the rule useless.

Canonicals and redirects 30

Backed by GoogleRuns daily

The canonical is an absolute HTTP or HTTPS URL

Check
Reads the href of every canonical tag. Fails when it is empty, malformed, not an HTTP or HTTPS URL, or breaks the policy requiring absolute URLs.
Fix
Write out the full preferred URL, including scheme and host.
Google
Google recommends absolute rather than relative paths. Google does support relative paths, but they can cause trouble later, for example if a test site gets crawled by accident.
Note
Google can resolve relative canonicals; a failure here is about avoiding later problems, not about whether Google can use the tag.

canonical.absolute-http-urlRevision 1changed

Backed by GoogleRuns daily

HTML and HTTP header canonicals name the same URL

Check
Compares the <link rel="canonical"> target with rel="canonical" in the HTTP Link header. Fails when they identify different resources. Paths are neither lowercased nor stripped of a trailing slash for the comparison.
Fix
Make both declarations point to the same preferred URL, or drop one of them.
Google
Google explicitly advises against giving different canonical URLs for one page through different methods. Using both methods at once is not a problem while they agree.

canonical.html-header-agreementRevision 3

Backed by GoogleRuns daily

The canonical tag sits in the head

Check
Checks where each <link rel="canonical"> sits in the delivered HTML and, where needed, the rendered DOM. Fails when one appears outside <head>.
Fix
Move the canonical into a valid <head> template.
Google
Google only accepts a <link rel="canonical"> element when it appears in the <head> of the HTML.

canonical.in-document-headRevision 1

Backed by GoogleRuns daily

The canonical link has no attributes that void it

Check
Looks for hreflang, lang, media and type attributes on every <link rel="canonical">. Fails when any of them is present. id, class and data-* are harmless.
Fix
Remove those attributes and declare language or media variants in separate <link rel="alternate"> elements.
Google
Google ignores rel="canonical" annotations that carry hreflang, lang, media or type for canonicalization, because they suggest alternate versions.

canonical.no-incompatible-attributesRevision 1

Backed by GoogleRuns daily

The canonical uses the preferred scheme

Check
Compares the scheme of the canonical URL, including protocol-relative values, with the preferred scheme. Fails when, for example, a page canonicalizes to HTTP although HTTPS is preferred.
Fix
Use the preferred scheme in the canonical and redirect the other variant.
Google
Two points in Google's documentation apply: redirect HTTP to HTTPS, and avoid conflicting canonical signals. An HTTP variant that canonicalizes to HTTPS can therefore be correct.

canonical.protocol-policy-agreementRevision 2changed

Backed by GoogleRuns daily

The canonical target carries no noindex

Check
For each canonical that points to another URL, fetches the target and reads its robots meta tags and X-Robots-Tag. An effective noindex on the target fails the rule.
Fix
Choose an indexable target, or remove the accidental noindex from it.
Google
Google says noindex removes a page from Search, so it cannot serve as the canonical meant to appear there. A missing noindex does not prove the page is indexed.

canonical.target-noindex-absenceRevision 1

Backed by GoogleRuns daily

All URL signals name the same preferred URL

Check
Compares a page's canonical tag, sitemap entry, internal links and hreflang annotations. Fails when they diverge through obsolete hosts, redirected variants or wrong pages.
Fix
Generate every URL from one preferred-URL policy, keeping each language version as its own URL in hreflang.
Google
Google explicitly advises against naming different canonical URLs through different methods. With hreflang, the canonical should be in the same language, or the best available substitute language.

canonical.url-signals-agreeRevision 1

Backed by GoogleRuns daily

Case variants redirect to the preferred URL

Check
Requests known equivalent variants that differ only in letter case. Fails when one serves its own page against the policy instead of redirecting to the preferred URL.
Fix
Redirect equivalent variants selectively, and leave routes where case carries meaning untouched.
Google
Google treats URLs that differ in case as distinct URLs. If your server treats them the same, Google recommends one consistent case and redirects to the preferred URL.
Note
Paths and query values are never lowercased wholesale.

redirects.case-alias-convergenceRevision 1changed

Backed by GoogleRuns daily

HTTP URLs permanently redirect to their HTTPS equivalent

Check
Requests pages over HTTP and follows the redirects. Fails when HTTP serves its own copy, redirects back to HTTP, or does not reach the same page over HTTPS through a 301 or 308.
Fix
Configure an HTTP-to-HTTPS redirect at the server or edge that covers every path and keeps the path intact.
Google
Google recommends redirecting HTTP pages to HTTPS and using server-side redirects for permanent moves. Both 301 and 308 signal a permanent move.

redirects.http-to-httpsRevision 2

Backed by GoogleRuns daily

Permanent moves use a 301 or 308 redirect

Check
For redirects the owner confirms as permanent, such as after a move or merge, reads the status code. Fails on a temporary code such as 302 or 307.
Fix
Switch permanent moves to 301 or 308, and leave deliberately temporary redirects as they are.
Google
For lasting URL changes, Google recommends server-side redirects, and both 301 and 308 mark a permanent move. Temporary redirects remain correct for temporary purposes.
Note
The rule does not claim that temporary redirects pass no signals; it checks that the code states the intent correctly.

redirects.permanent-statusRevision 2

Backed by GoogleRuns daily

Alternate hosts permanently redirect to the preferred host

Check
Requests every equivalent host variant, such as with and without www. Fails when one serves its own copy or does not reach the preferred host through a 301 or 308.
Fix
Pick one preferred host and permanently redirect every other variant to it at the server or edge.
Google
Google's advice is to choose one of several equivalent URLs as canonical and redirect the others to it, permanently with 301 or 308 where possible. With or without www is your choice.

redirects.preferred-hostRevision 2

Partly backedRuns daily

Pages that require a canonical declare one

Check
Applies to pages or templates where the owner requires a canonical. Fails when neither a <link rel="canonical"> nor a Link header with rel="canonical" provides a non-empty value.
Fix
Add the intended canonical in the HTML or as a Link header.
Google
Google supports canonical declarations but does not require them and says sites usually do fine without one. The requirement here comes only from the owner's policy.

canonical.declared-when-requiredRevision 1

Partly backedRuns daily

Cross-host canonicals are intentional

Check
For each canonical that points to another host, checks that the target is an equivalent page the owner has approved. Fails on an unapproved or unrelated target.
Fix
Document intentional cross-host canonicals such as syndication, and replace accidental ones with the correct canonical URL.
Google
Google describes canonical hints for duplicate or very similar pages. It does not recommend them against duplication by syndication partners; it says partners blocking indexing of their copy works better.

canonical.external-target-intendedRevision 2changed

Partly backedRuns daily

The canonical points straight to the final canonical URL

Check
Fetches the canonical target and reads its own canonical. Fails when the target names yet another URL. HTTP redirects and loops are covered by separate rules.
Fix
Enter the final canonical URL directly.
Google
A stable final target fits Google's advice against conflicting canonical signals. The documentation contains no explicit ban on canonical chains.

canonical.no-chainsRevision 1

Partly backedRuns daily

Canonical links form no loop

Check
Follows canonical targets from page to page. Fails when the path returns to an already visited page via another page, for example when A names B and B names A. A self-reference is not a loop.
Fix
Point every page in the loop directly to one final canonical URL.
Google
Google advises consistent canonical signals without contradictions, which argues against loops. The documentation has no explicit rule on canonical loops.

canonical.no-cyclesRevision 2

Partly backedRuns daily

Each page has at most one canonical tag in its HTML

Check
Counts the <link rel="canonical"> elements in the HTML. More than one fails the rule, even if they all name the same URL.
Fix
Find what generates the extra element, such as a plugin or layout, and keep only the intended one.
Google
Google explicitly discourages conflicting canonical declarations. The rule goes further and asks for a single element, even when identical duplicates do not conflict.
Note
Identical duplicates are a maintenance risk; different targets are the more serious defect.

canonical.single-html-declarationRevision 2

Partly backedRuns daily

Pages with both noindex and a canonical follow a clear intent

Check
Looks at pages that carry noindex themselves and canonicalize to another URL. Fails when the noindex is accidental and contradicts the indexing or consolidation policy.
Fix
Implement the intended strategy, and remove noindex only once the intent is clear.
Google
Google advises against using noindex to steer canonical selection within a site, because it removes the page from Search entirely. rel="canonical" is the preferred tool for that.
Note
Having both is not automatically wrong; a documented exclusion can be coherent.

canonical.source-noindex-delegation-intendedRevision 1changed

Partly backedRuns daily

The canonical target does not HTTP-redirect

Check
Requests each canonical target with HEAD, falling back to GET. Fails when it answers with a redirect status and a Location header. A 304 is not a redirect, and errors leave the result open.
Fix
Replace the canonical target with the URL it redirects to, provided that is the preferred page.
Google
Direct targets avoid detours and fit Google's advice on consistent signals. The current documentation does not say that Google ignores or rejects canonical targets that redirect.

canonical.target-no-http-redirectRevision 1

Partly backedRuns daily

The canonical target is a live, final URL

Check
Fetches every canonical target. Fails when it points to a dead host, an error, an obsolete domain or a URL that redirects.
Fix
Set the canonical directly to the current final URL of the preferred page.
Google
A live, equivalent target fits Google's canonicalization guidance. The current documentation does not say that every redirecting canonical target is invalid.

canonical.target-resolvesRevision 1

Partly backedRuns daily

The canonical target is not blocked by robots.txt

Check
For each canonical target meant to be indexed, evaluates robots.txt for the chosen crawler. Fails when a Disallow rule blocks it.
Fix
Allow the target in robots.txt, or choose an equivalent URL that crawlers may fetch.
Google
A crawlable target fits Google's guidance on robots.txt and canonicalization. A block alone does not mean the target drops out of the index.

canonical.target-robots-accessRevision 1

Partly backedRuns daily

Supported host aliases resolve and have a valid TLS certificate

Check
For each host the owner supports, such as with and without www, checks DNS resolution and the TLS certificate. Fails when the DNS record is missing or a placeholder, or an invalid certificate blocks access.
Fix
Set up DNS and a matching certificate for each supported host before redirecting it.
Google
Google says the certificate must match the full host name or be a wildcard certificate. Which host variants must be reachable is the owner's decision, not Google's.

redirects.host-alias-reachableRevision 1

Partly backedRuns daily

Redirects form no loop

Check
Follows each redirect chain step by step. Fails when a redirect leads back to a URL already visited. /path and /path/ count as different URLs; a trace cut off without a repeat leaves the result open.
Fix
Correct the redirect rules so every chain ends at the intended destination.
Google
Google advises redirecting straight to the final destination and keeping chains short; a loop never reaches one. Google does not describe a specific detection method.

redirects.no-cyclesRevision 2

Partly backedRuns daily

A Refresh header does not stand in for an HTTP redirect

Check
Reads the HTTP Refresh header on URLs that moved or should redirect. Fails when it replaces a feasible 3xx redirect. A Refresh without a target URL that only reloads the page does not count.
Fix
Replace the Refresh header with a 301 or 308 for permanent moves, or a suitable temporary status for temporary ones.
Google
Google prefers server-side redirects where possible but also accepts Refresh. The rule therefore fails only when a server redirect would be feasible.

redirects.no-http-refresh-navigationRevision 1changed

Partly backedRuns daily

Moves of public URLs do not depend on JavaScript alone

Check
For public URLs that have moved, checks whether the HTTP response itself redirects. Fails when the move happens only in JavaScript. A match in the source must be confirmed at runtime.
Fix
Implement a server-side redirect for the move.
Google
Google prefers server-side redirects but runs JavaScript after crawling and processes JavaScript redirects too. Google does not say such redirects are invisible or invalid.
Note
In-app navigation through JavaScript is legitimate; the rule only concerns moved public URLs.

redirects.no-js-only-navigationRevision 1changed

Partly backedRuns daily

Meta refresh does not stand in for an HTTP redirect

Check
Looks for <meta http-equiv="refresh"> on URLs that moved or should redirect. Fails when it replaces a feasible HTTP redirect. A refresh that only reloads the page does not count.
Fix
Switch to an HTTP redirect, using 301 or 308 for permanent moves.
Google
Where possible, Google recommends server-side redirects. Meta refresh is the fallback when that is not possible: Google reads an instant one as permanent and a delayed one as temporary.

redirects.no-meta-refresh-navigationRevision 1changed

Backed by Google

Inner pages canonicalize to the homepage only when the content matches

Check
Finds inner pages whose canonical points to the homepage of the same site. Fails when the inner page has distinct content. The root path of another host does not automatically count as the homepage.
Fix
Point each inner page to its own equivalent URL instead of the homepage across the board.
Google
Google describes canonical hints for duplicate or very similar pages. A distinct inner page is not a duplicate of the homepage.

canonical.homepage-delegation-intendedRevision 1

Backed by Google

Redirects lead to the matching successor page

Check
For moves and retired pages, compares each old URL with its destination. Fails when distinct pages collapse onto the homepage or a hub, or lose the meaning of their path and query.
Fix
Map each old URL to its closest genuine replacement, and restore useful content where no replacement exists.
Google
For site moves, Google recommends mapping old URLs to new ones and redirecting permanently on the server according to that map. Any reachable destination does not qualify.

redirects.resource-correspondenceRevision 1

Backed by Google

Redirects reach their target without unnecessary hops

Check
Follows each redirect to its end. Fails on a reproducible loop or an avoidable intermediate hop. A single redirect is normal.
Fix
Redirect straight to the final URL, and point internal links there directly too.
Google
Google advises redirecting straight to the final destination. Googlebot follows up to 10 hops; if a chain cannot be avoided, keep it short, ideally no more than 3.
Note
Not a ban on multi-hop routing: documented, unavoidable steps between systems do not fail the rule.

redirects.unnecessary-chainsRevision 2

Partly backed

The canonical tag names the intended preferred page

Check
Compares each page's canonical target with the owner's canonical policy. Fails when the canonical is missing although the policy requires one, conflicts, or names the wrong page, for example when every page points to the homepage.
Fix
Generate exactly one correct canonical per page, and canonicalize only to pages with equivalent content.
Google
Google describes canonical hints for duplicate or very similar pages and advises against conflicting signals. None of the methods is required, and Google makes the final canonical choice itself.
Note
A canonical that points to another URL is not a defect by itself.

canonical.preferred-resourceRevision 2

Partly backed

Redirects end on a working, suitable page

Check
Follows each redirect to its end and assesses the final response. Fails when that is demonstrably an error or unsuitable content. Aborted or incomplete traces leave the result open.
Fix
Repair the destination, or redirect to a working page instead.
Google
Google's advice is to redirect to mapped new destinations. The rule checks more than the status code, namely whether the destination fits, and passing it does not prove indexing.

redirects.destination-successRevision 1

URLs 11

Backed by GoogleRuns daily

Path casing follows the routing policy

Check
Compares the letter case of generated paths with the intended form. Fails on unintended casing, such as /Pricing instead of /pricing. Uppercase in locale codes, IDs or file names can be valid; percent-encoding hex digits are ignored.
Fix
Update the generated links, and redirect only variants proven to be equivalent.
Google
Google treats paths that differ in case as distinct URLs and recommends one consistent case when the server treats them alike. Uppercase letters are not wrong in themselves.

url.path-case-policyRevision 1changed

Backed by GoogleRuns daily

Percent-encoding in the path is valid

Check
Decodes every percent sequence in the path and re-encodes it. Fails on malformed sequences, such as %G1 or a % without two hex digits, or when the encoding breaks the expected convention.
Fix
Correct the encoding where URLs are generated, and keep localized paths with non-ASCII characters.
Google
Google requires reserved characters to be percent-encoded according to the standard. Valid Unicode slugs, such as ones with German umlauts, are not affected by this rule.

url.path-percent-encoding-validRevision 1changed

Backed by GoogleRuns daily

Slug words are separated with hyphens

Check
Looks for underscores used as word separators in editorial slugs, such as new_features. Fails when they break the hyphen convention. Underscores in IDs and technical paths are exempt.
Fix
Use hyphens in new slugs, and migrate existing URLs only when the benefit justifies the change.
Google
Google explicitly recommends hyphens over underscores to separate words, as this helps users and search engines identify concepts. Google states no penalty for underscores.

url.slug-hyphen-policyRevision 1changed

Backed by GoogleRuns daily

Tracking variants point to the clean URL

Check
For URLs that verifiably differ only by tracking parameters such as utm_source, checks the canonical and internal links. Fails when they contradict the consolidation policy instead of pointing to the clean URL.
Fix
Set the canonical to the clean URL and link internally without tracking parameters, while keeping campaign attribution working.
Google
Google supports consolidating duplicate or very similar URLs with canonical hints and advises against conflicting signals. Parameter names alone do not prove that a URL is a tracking-only variant.
Note
Parameters such as ref can change content; their presence alone is not a defect.

url.tracking-variant-canonical-policyRevision 1changed

Partly backedRuns daily

Public URLs contain no session tokens

Check
Inspects the path and query of public URLs for real session tokens. Fails when a confirmed token appears. A parameter name such as sid alone is not proof.
Fix
Keep sessions in secure cookies and remove links that carry a token.
Google
Google cites session IDs in URLs as an example of problematic variants that inflate the number of URLs. The rule goes further and also covers privacy and security.

url.no-session-tokenRevision 1changed

Partly backedRuns daily

Repeated slashes in paths follow the routing policy

Check
Looks for consecutive slashes such as // in the path. Fails when they create a wrong route or an alias URL against the policy. The slashes after the scheme are left alone.
Fix
Repair the URL generation, and redirect variants proven to be equivalent.
Google
According to Google, repeated slashes in a path are valid syntax but not user-friendly and may confuse some crawlers. Google does not ban them.

url.path-slash-policyRevision 1changed

Partly backedRuns daily

Path words are separated per the slug convention

Check
Looks for spaces, encoded as %20, in new slugs. Fails when they break the agreed separator convention. Spaces in query values are ordinary data and do not count.
Fix
Separate words in new slugs with the agreed character; change existing URLs only for a clear benefit.
Google
For word separators in URLs, Google recommends hyphens. The convention for new slugs is the owner's choice, and encoded spaces are not malformed as such.

url.path-word-separator-policyRevision 1changed

Partly backedRuns daily

Query parameters stay within the agreed budget

Check
Counts each URL's query parameters and compares them with the owner's budget. Fails when unnecessary parameters exceed it and create unwanted URL variants.
Fix
Drop parameters that do not change the content, and keep those that carry real state.
Google
Google advises trimming parameters that do not change the content, since many variants waste crawling. Google names no fixed parameter limit.
Note
The site owner sets the budget. Search Console's former URL Parameters tool has been retired.

url.query-parameter-budgetRevision 1changed

No Google statementRuns daily

URLs stay within the agreed length budget

Check
Measures the length of each URL against the budget the site owner set. Fails when a URL is needlessly long and exceeds it.
Fix
Keep new URLs short at generation time; change existing ones only for a clear benefit and with a redirect.
Google
Google advises readable URLs without unnecessary parameters but sets no length limit. The budget is the owner's quality convention.
Note
The site owner sets the budget; it is not a Google limit.

url.length-budgetRevision 1changed

No Google statementRuns daily

Repeated adjacent path segments are intentional

Check
Looks for identical adjacent segments, such as /blog/blog/. Fails when such a repeat accidentally creates a wrong route or an unwanted alias URL.
Fix
Clean up link and route generation, and redirect variants proven to be equivalent.
Google
Google's documentation does not address repeated path segments. The rule is a maintenance convention against broken routes.

url.repeated-segment-policyRevision 1changed

Backed by Google

Editorial slugs describe their page

Check
Assesses editorial slugs, not technical IDs. Fails when a slug is needlessly generic, such as page-1 instead of a descriptive term, and so breaks the editorial policy.
Fix
Give new pages descriptive slugs; change existing ones only when the benefit justifies the effort.
Google
Google recommends readable words rather than long ID numbers in URLs where possible.

url.descriptive-slugRevision 1

Consolidating duplicate pages 2

Backed by Google

Retired duplicate URLs redirect to their chosen replacement

Check
For pages retired after a merge or platform change, checks the response. Fails when the duplicate is still live, breaks without a planned transition, or redirects to an unrelated destination.
Fix
Move useful material into the chosen page and redirect the duplicate there with a 301 or 308.
Google
Permanent redirects are Google's recommended tool when deprecating a duplicate page; they show that the old URL is the lesser version. In moves, destinations should follow a prepared URL map.

redirects.retired-equivalentRevision 1

Partly backed

Equivalent pages have a deliberate ownership decision

Check
Looks for pages that serve the same user need. Fails when two of them duplicate one role with no preferred version and no clear differentiation. Shared keywords alone do not prove cannibalization.
Fix
Merge the useful material or sharpen each page's purpose; use a permanent redirect only when you retire an equivalent page.
Google
Google suggests reducing unnecessary duplicate content, since it can hurt users and waste crawling resources. Google does not prescribe whether to merge, canonicalize or retire.

consolidation.intent-overlapRevision 1

Have these rules put into practice on your site.

We’re starting with a few companies and opening up step by step. The first customers get founding terms. Cancel monthly, no minimum term.

What happens next

  1. 1

    Before launch

    We get in touch personally and check whether XEO fits your company. If the answer is no, we’ll tell you plainly.

  2. 2

    At launch

    You give us access to your website, Search Console and Analytics, using a short checklist.

  3. 3

    After that

    Reviewed changes go live continuously. Every Monday you see what moved.

We only use your details to contact you when XEO opens. No newsletter. A short email to contact@usexeo.com is enough to have your signup deleted. Privacy