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.
How to find the links pointing to it
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.
Related issues
Sources and references
Google Search Central, How HTTP status codes, and network and DNS errors affect Google Search
Google Search Central, Redirects and Google Search

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.



