- Class
- C1 Mechanism
- Weight
- 8
- Severity on fail
- critical
- Applies to
Test this rule on a live site with the canonical tag checker. Free, no account needed.
Scope and evidence
Evaluated on pages in P with at least one link[rel~=canonical]. The book marks this requirement REQUIRED, SEARCH-ENGINE-SPECIFIC.
{culprit_clause} = " because the parser closed <head> at line {head_closed_line}, where it met {culprit}" when SEO-HEAD-05 found a culprit.
Fail conditions
Each condition has a stable code and a reason template. The evaluator fills the placeholders from observed values only; no sentence in a report is generated.
outside_headGoogle accepts rel="canonical" only in the <head>. On {url} the canonical element (line {line}) is in <body>{culprit_clause}, so Google will not accept it.
The documented fix
Emit the canonical in the server-rendered head, before any third-party snippet, and fix the culprit reported by SEO-HEAD-05.
Sources, quoted
These are the passages the rule rests on, stored once in the knowledge base and emitted exactly as written. A citation marked for specific conditions appears only on findings with those codes.
“The rel="canonical" link element is only accepted if it appears in the <head> section of the HTML”
[G-CANON] How to specify a canonical URL with rel="canonical" and other methods · rel="canonical" link element · last updated 2026-07-10
https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls
Related rules
- SEO-HEAD-05The head is not closed early