Canonical elements
Detect missing, multiple, relative, self-referencing, and cross-URL canonical signals.
Review canonical link elements, redirects, HTTP/HTTPS consistency, canonical targets, normalization, and common canonicalization issues.
Detect missing, multiple, relative, self-referencing, and cross-URL canonical signals.
Inspect status, final URL, redirect chain, and canonical target behavior.
Review fragments, query strings, protocol differences, and target-domain differences.
Use JSON output for audits and downstream scripts.
Download the repository ZIP or clone the source.
Use Python 3.10+ and install the requirements.
Run one or multiple authorized URLs.
A canonical is an implementation signal; the tool does not determine the canonical selected by a search engine.
python -m pip install -r requirements.txtpython canonical_url_checker.py https://example.com/python canonical_url_checker.py https://example.com/page --jsonpython canonical_url_checker.py https://example.com/page --no-target-fetchIt does not guarantee rankings, indexing, traffic, search visibility, or search-engine decisions. Evaluate findings against the actual website, evidence, current authoritative documentation, and project context.