Skip to content
Nazmul Nikhil
Menu

404 Page in Ahrefs: When to Fix It, Redirect It or Leave It

Ahrefs flags internal URLs that return 404 Not Found. Here's how to decide whether to restore, redirect or simply unlink each one, with steps for major platforms.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 3 min read
404 Page in Ahrefs: When to Fix It, Redirect It or Leave It
Photo: Leftfield Corn on Unsplash

In short

Ahrefs flags "404 page" for internal URLs that return HTTP 404 Not Found. A 404 isn't a penalty, and it's the right answer for pages that are truly gone. The problem is linking to them. For each one, either restore the page, 301 redirect it to the closest relevant page, or remove the internal links and sitemap entries that point to it.

A 404 means the server says the page doesn't exist. Ahrefs found the URL on your site, usually through an internal link or a sitemap, and got that answer back.

Why it matters

  • Visitors hit a dead end when they click a link to a 404, and most leave.

  • Links lose their value. Internal and external links pointing to a 404 pass nothing to the rest of your site.

  • Search engines drop the URL. Google doesn't index URLs that return 4xx codes, and removes ones that were indexed.

Decide what to do with each URL

Situation Best action
Page was deleted by mistake Restore it
Content moved to a new URL 301 redirect old to new
A close replacement exists (newer product, updated guide) 301 redirect to the replacement
Nothing similar exists Leave the 404 (or use 410) and remove all internal links to it
The URL is a typo in a link Fix the link
The URL has backlinks or traffic Redirect to the most relevant page so the links aren't wasted

Use Ahrefs' Site Explorer or Search Console to check which 404 URLs have backlinks or past traffic. Those are the ones worth redirecting.

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 →

In the issue report, open the "Incoming links" for each URL. Fix or remove those links first, because a redirect only papers over a link you could correct.

Set up redirects

WordPress: Rank Math has a Redirections module, and Yoast SEO Premium has a redirect manager. The free Redirection plugin also works.

Shopify: Content > Menus > URL redirects.

Webflow: Site settings > Publishing > 301 redirects.

Wix: the URL Redirect Manager, under the SEO dashboard > Tools and settings.

Custom builds: add 301 rules on the server, for example in Apache:

Redirect 301 /old-page/ https://example.com/new-page/

Make your 404 page useful

Visitors will still hit 404s from old external links and typos. A good 404 page keeps them: a clear message, a search box, and links to your main sections. Make sure it actually returns status 404, not 200, or Google may report it as a soft 404.

Common mistakes

  • Redirecting every 404 to the home page. Google treats irrelevant redirects like this as soft 404s, so you gain nothing.

  • Leaving the URL in the sitemap. Remove deleted pages from your XML sitemap.

  • Panicking about 404s from random URLs. Bots and old typos create 404s on every site. Only URLs you link to, or that have backlinks, need action.

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

Sources and references

TAGSAhrefs Site Audit404 pageAhrefs 404 pageFix 404 errors
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