Canonical URL is relative instead of absolute: what it is, why it matters, and how to fix it
The canonical tag uses a relative URL instead of an absolute URL with protocol and domain. While browsers resolve relative canonicals, the specification recommends absolute URLs.
Where this fits: indexability in SEO
Why canonical url is relative instead of absolute hurts your rankings
Relative canonical URLs can be misresolved by search engines in certain edge cases, especially when pages are accessed through proxies, CDNs, or alternative domains. Google recommends using absolute URLs in canonical tags to avoid ambiguity. A relative canonical may also cause issues during site migrations or domain changes.
This is a medium-severity issue: individually modest, but it compounds — dozens of medium issues across hundreds of pages add up to a real quality deficit in how search engines assess the site.
How to fix it
Update the canonical tag to use a fully qualified absolute URL including the protocol (https://) and domain name.
<!-- Before (relative) -->
<link rel="canonical" href="/page/" />
<!-- After (absolute) -->
<link rel="canonical" href="https://example.com/page/" />Frequently asked questions
What does "Canonical URL is relative instead of absolute" mean?
The canonical tag uses a relative URL instead of an absolute URL with protocol and domain. While browsers resolve relative canonicals, the specification recommends absolute URLs.
Why does canonical url is relative instead of absolute matter for SEO?
Relative canonical URLs can be misresolved by search engines in certain edge cases, especially when pages are accessed through proxies, CDNs, or alternative domains. Google recommends using absolute URLs in canonical tags to avoid ambiguity. A relative canonical may also cause issues during site migrations or domain changes.
How do I fix canonical url is relative instead of absolute?
Update the canonical tag to use a fully qualified absolute URL including the protocol (https://) and domain name.
How serious is this issue?
This is a medium-severity issue: individually modest, but it compounds — dozens of medium issues across hundreds of pages add up to a real quality deficit in how search engines assess the site. It belongs to the indexability family of checks.
How do I find every page affected by this on my site?
Run a free Dr Urls audit: it crawls your site, detects canonical url is relative instead of absolute on every affected page, shows example URLs, and generates a ready-to-use fix task. Re-scan after fixing to verify the issue is gone.
Does your site have this issue?
A free Dr Urls audit crawls your site, finds every page affected by canonical url is relative instead of absolute, and hands you a ready-made fix task.
Check my site free