Skip to main content
Validates canonical URL presence and format
Rule IDcore/canonical
CategoryCore SEO
ScopePer-page
Severitywarning
Weight6/10

Solution

Canonical URLs tell search engines which version of a page is the “master” copy, preventing duplicate content issues. Every page should specify a canonical URL, typically pointing to itself. Add a <link rel="canonical" href="..."> tag in the head section. Use absolute URLs and ensure consistency (with or without trailing slash, www vs non-www). For paginated content, point to the main page or use rel=“prev/next”.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["core/canonical"]

Disable all Core SEO rules

squirrel.toml
[rules]
disable = ["core/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["core/canonical"]
disable = ["*"]