In short
Ahrefs flags "Canonical points to 5XX" when a page's canonical URL returns a 5XX server error, such as 500, 502, 503 or 504. Search engines can't use a canonical they can't load, so they may ignore it. Recheck the URL first. If it now loads, the cause was a temporary outage. If it still fails, fix the server error or point the canonical to a working URL.
This issue looks like a canonical problem, but it's often a server problem that happened to hit your canonical URLs while Ahrefs was crawling. The first job is to work out which one you have.
What triggers this issue
The page's <link rel="canonical"> points to a URL that answered the Ahrefs crawler with a 5XX status code. 4XX means the page is missing or refused. 5XX means the server failed to answer properly.
Temporary or real? Check this first
Ahrefs itself notes that the issue may be temporary if the crawl ran during downtime or overload. Open two or three of the canonical URLs in a status checker right now.
| What you see now | What it means | What to do |
|---|---|---|
| 200 OK | The server was down or overloaded during the crawl | Look at server load and crawl speed (below), then recrawl |
| Still 5XX | The canonical target is broken | Fix the page or change the canonical |
| 503 on some requests only | Rate limiting or a firewall blocking the crawler | Allowlist the crawler or slow the crawl |
Free SEO audit
Not sure which issues matter on your site?
I'll review your site and send you the fixes that matter most, in plain English.
Why it matters
If Google hits the same errors, it can't confirm your chosen canonical and will pick one itself. Google also says 5XX errors make its crawlers temporarily slow down. URLs that keep failing are eventually dropped from the index.
How to fix it
If it was a crawl-time spike: in Ahrefs, lower the crawl speed in the project's crawl settings and recrawl. On shared hosting such as cPanel, ask your host whether a firewall like Imunify360 or mod_security rate-limited the crawler.
If the target page errors every time: read the server error log for that URL. Common causes are a PHP fatal error from a plugin, a database timeout, or a server-side render that crashes on one template.
If the target page shouldn't exist: change the canonical to the correct live page, usually the page itself.
WordPress: turn on WP_DEBUG_LOG temporarily, load the canonical URL, and read wp-content/debug.log. A plugin conflict is the usual culprit. Then correct the Canonical URL field in Yoast or Rank Math if it points to the wrong page.
Shopify: Shopify's servers rarely return 5XX for long. A 5XX on a canonical usually points to a third-party proxy or app subdomain. Check that the canonical uses your primary domain.
Webflow and Wix: both are hosted platforms, so lasting 5XX errors are rare. Recrawl, and contact platform support if the error repeats on the same URLs.
Custom builds: check that server-rendered or API-backed pages handle missing data without crashing. A guard such as (value || '') on nullable fields prevents many 500s.
How to confirm the fix
The canonical URL should return 200 in a status checker and in Google Search Console's URL Inspection live test. Then recrawl in Ahrefs and check that the count drops to zero.
What each 5XX code usually means
| Code | Typical meaning | First place to look |
|---|---|---|
| 500 | The application crashed while building the page | Application or PHP error log |
| 502 | A proxy or CDN got a bad answer from the server behind it | CDN status, then the origin server |
| 503 | The server is overloaded, rate limiting, or in maintenance mode | Hosting resource limits, maintenance plugins, firewall rules |
| 504 | A proxy waited too long for the server | Slow database queries, timeouts on heavy pages |
A worked example
A small business site on shared cPanel hosting gets crawled by Ahrefs at full speed. Halfway through the crawl, the host's resource limits kick in and return 503 to everything for a few minutes. Ahrefs records 503 for whatever it requested in that window, including several canonical targets. The next morning, every one of those URLs loads fine.
Nothing about the canonical tags was wrong. The fix was lowering the Ahrefs crawl speed and asking the host whether the crawler had hit a limit. If Googlebot ever hits the same limit, it will slow its own crawling. That's a reason to check your hosting headroom anyway.
Common mistakes
Rewriting canonicals before rechecking. Most crawl-time 5XX issues clear on their own.
Blocking the Ahrefs crawler to make the error go away. You lose the audit, and the underlying load problem stays.
Ignoring a 5XX that repeats on the same template. A canonical target that fails every time points to a real bug on that page type.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Ahrefs Help, "Canonical points to 5XX" error in Site Audit (checked Dec 1, 2026)
Ahrefs Blog, Canonical Tags Explained (updated Oct 31, 2024)
Google Search Central, How to specify a canonical URL (updated July 10, 2026)
Google Search Central, How HTTP status codes affect Google's crawlers (updated Feb 4, 2026)

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



