Skip to content
Nazmul Nikhil
Menu

Canonical Points to 4XX in Ahrefs: What It Means and How to Fix It

Ahrefs flags "Canonical points to 4XX" when a canonical tag targets a dead URL. Here's why search engines ignore it and how to fix it on any CMS.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 4 min read
Canonical Points to 4XX in Ahrefs: What It Means and How to Fix It
Photo: Jamie Street on Unsplash

In short

Ahrefs reports "Canonical points to 4XX" when a page's rel="canonical" link points to a URL that returns a 4XX client error, most often 404. Search engines can't index a dead page, so they ignore the canonical and choose a version themselves. Fix it by pointing the canonical at a live URL that returns 200.

A canonical tag is supposed to name the one version of a page you want in search results. When that named URL returns a 404 or another 4XX error, you are telling search engines to index a page that doesn't exist.

What triggers this issue in Ahrefs

Ahrefs reports canonicalized URLs whose canonical link returns a 4XX status code. In plain code, the page carries something like this:

<link rel="canonical" href="https://example.com/old-product/" />

and https://example.com/old-product/ responds with 404, 410 or another 4XX code.

Why it matters

Google treats rel="canonical" as a strong signal, not a command. A signal that points to a dead page carries no useful information, so Google falls back on its own choice. That choice may be the parameter URL, the print version or the wrong product variant.

The real cost depends on the page. On a product with ten variant URLs, a broken canonical can split ranking signals across all ten. On a single blog post with no duplicates, Google will usually just index the post itself, and the damage is small.

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.

Get my free audit →

Common causes

  • A page was deleted or its slug changed, but other pages still list the old URL as canonical.

  • A hardcoded canonical in a theme or template points to a staging or old domain.

  • A typo in a manually entered canonical field, such as a missing trailing slash on a server that 404s without it.

  • Canonicals that point to a page behind a login, which returns 401 or 403 to crawlers.

How to fix it

  1. In Ahrefs, open Site Audit > Indexability > Canonical points to 4XX and export the list. Add the canonical URL column so you can see where each one points.

  2. For each target, decide what the right canonical is. Usually it's the page itself (a self-referencing canonical), or the live page that replaced the deleted one.

  3. Update the canonical to that live URL. Use an absolute URL, as Google recommends.

  4. Don't redirect the dead canonical target to fix this. Ahrefs notes that this only turns the issue into "Canonical points to redirect".

WordPress: with Yoast SEO, open the post and go to the Yoast sidebar > Advanced > Canonical URL. With Rank Math, use the Advanced tab of the meta box. Clear the field or correct it. An empty field gives you an automatic self-referencing canonical.

Shopify: themes output {{ canonical_url }} in theme.liquid, which is normally correct. If you see this issue, look for a hardcoded <link rel="canonical"> added by an app or a theme edit and remove it.

Webflow: check Site settings > SEO > Global canonical tag URL. For static pages, also check Page settings > SEO settings > Page canonical URL (Webflow help). Both must use your live domain.

Wix: open the page's SEO panel and correct the custom canonical in the SEO Basics tab (Wix help).

Custom builds (React, Next.js, Astro): fix the value in your head or SEO component, and make sure it's built from the current slug, not a stored old one. In Next.js that's alternates.canonical in the page metadata.

How to confirm the fix

View the page source and check the canonical URL returns 200 (an HTTP status checker or your browser's Network tab will show it). Then recrawl in Ahrefs. For important pages, use URL Inspection in Google Search Console to see which canonical Google has chosen after it recrawls.

A worked example

An online store sells a jacket in three colors: /jacket-black/, /jacket-blue/ and /jacket-green/. All three point their canonical at /jacket/, the main product page. Months later, the team retires the main page and launches /jacket-2026/, but the variant template still says /jacket/.

Now three live pages point to a 404. Google ignores the canonical, treats each color as its own page, and may pick the green one, which has the fewest reviews, to show in results. The fix is one template change: point all three variants to /jacket-2026/. A redirect from /jacket/ helps old backlinks, but the canonical itself should name the final live URL.

How to prioritize the list

  1. Pages with traffic or revenue first. In Ahrefs, add the Organic traffic column to the issue report and sort by it.

  2. Template-level causes next. If dozens of URLs share one dead canonical target, a single template or setting is behind them. Fix that once.

  3. One-off typos last. Manually entered canonicals with a typo usually affect one page each.

Common mistakes

  • Redirecting the dead target and calling it fixed. The issue just moves to "Canonical points to redirect".

  • Pointing every page's canonical at the home page. That tells Google every page is a duplicate of the home page, so it may drop them all from results.

  • Using relative canonicals like /jacket/. Google recommends absolute URLs, because relative ones break when a page is served from another host or path.

  • Fixing the page but not the template, so the next product published repeats the error.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditCanonical points to 4xxAhrefs canonical points to 4xxCanonical tag 404
Nazmul Nikhil

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.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com