How to Fix 404 Errors for SEO: Which Ones to Redirect and Which to Leave

Open Google Search Console, click Pages > Not found (404), and you will almost always find a list that looks alarming: hundreds, sometimes thousands of URLs. The reflex for most site owners is to grab a redirect plugin and point every single one of them at the homepage. That reflex is wrong, and in many cases it makes the situation worse than the 404s ever did.

This guide gives you a decision framework for handling 404 errors found in Search Console and crawl reports. Not a generic “use 301 redirects” answer, but a triage process that tells you which broken URLs deserve a redirect, which ones should return a 410 Gone, and which ones are perfectly fine left exactly as they are.

The short answer first

  • 301 redirect when the content moved, was merged, or the URL has external backlinks and a genuinely equivalent destination exists.
  • 410 Gone when the page was deliberately removed, has no equivalent, and no external links pointing at it (expired products, old events, spam URLs).
  • Leave the 404 when the URL never existed, was created by a bad scraper, a malformed link, or a typo, and nobody is losing anything.
  • Never mass-redirect to the homepage. Google treats irrelevant redirects as soft 404s, so you get zero link equity and a confusing user experience on top.
404 error page

Are 404 errors actually bad for SEO?

By themselves, no. Google has repeated for years that 404s are a normal part of the web. Pages get deleted. URLs change. A site with zero 404s is a site that never evolves.

What does hurt your SEO is the context around the 404:

Situation SEO impact
A deleted page nobody linked to returns 404 None. This is normal behaviour.
An old URL with 40 referring domains returns 404 Real loss. Link equity evaporates.
Internal links across the site point to 404s Crawl budget waste, poor UX, diluted internal linking.
A page that still ranks and gets traffic suddenly 404s Severe. Rankings and revenue drop within days.
Thousands of 404s from a broken pagination or filter system Crawl budget drain on large sites, signals low quality.
Everything redirected to the homepage Worse than a 404. Soft 404s, no equity passed, user frustration.

So the goal is never “get to zero 404s”. The goal is to make sure no 404 is costing you traffic, links or crawl efficiency.

Step 1: Collect your 404s from every source

Search Console alone is not enough. It only shows what Googlebot found, and it lags. Pull data from all of these before you decide anything:

  1. Google Search Console > Indexing > Pages > Not found (404) and Soft 404. Export the full list.
  2. A crawler (Screaming Frog, Sitebulb, Ahrefs Site Audit, JetOctopus). Crawl your site and use the Inlinks report to see which internal pages point to each 404.
  3. A backlink tool (Ahrefs Best by Links with a 404 filter, Semrush Backlink Analytics, Majestic). This is the single most valuable source, because it shows the 404s that still hold link equity.
  4. Server logs. They reveal what real users and bots are hitting, including URLs no crawler will ever discover.
  5. Analytics. Track 404 page views in GA4 with an event so you see which broken URLs humans actually land on.

Merge everything into one spreadsheet with these columns: URL, referring domains, internal inlinks, last known organic clicks, source of discovery, decision. That spreadsheet is your triage sheet.

Step 2: The decision framework

For every 404 URL, ask these four questions in order. Stop at the first one that gives you a clear answer.

Question 1: Did this URL ever serve real content on my site?

If the answer is no, you are done. Leave it as a 404.

These URLs are noise: scraper-invented paths, malformed links from other sites, /wp-content/uploads/undefined, URLs with broken tracking parameters, CMS artefacts, or the classic /index.php/index.php/ loops. A 404 is the correct, honest answer. Redirecting them creates redirect bloat and hides real problems.

Question 2: Does an equivalent page exist today?

“Equivalent” means a user who clicked the original link would be satisfied by the destination. A discontinued blue running shoe redirected to the same shoe in a new colourway is equivalent. That same shoe redirected to the shoe category page is borderline. Redirected to the homepage is not equivalent at all.

  • Equivalent page exists → 301 redirect to it.
  • No equivalent, but a close parent category exists AND the URL has backlinks or traffic → 301 to the parent category, and accept that some equity is lost.
  • No equivalent at all → go to question 3.

Question 3: Does the URL still have external backlinks or residual traffic?

This is where money is made. Run the list through your backlink tool. Any 404 with referring domains is recoverable link equity sitting on the floor.

If a dead URL has backlinks but no sensible destination, you have three options ranked by value:

  1. Recreate the content at the original URL. Best option when the links are strong and the topic still matters.
  2. 301 to the closest relevant page. Good option, and it passes most of the value as long as the topic match is real.
  3. Let it 404 or 410. Only if the links are spam or from toxic sources you do not want associated with your site.

Question 4: Was the page deliberately and permanently removed?

If yes, and it has no links and no equivalent, serve a 410 Gone. Think expired job listings, finished events, sold one-off inventory, discontinued SKUs with no successor, old campaign landing pages, thin tag archives you pruned on purpose.

Google treats 410 as a stronger, faster removal signal than 404. On a large site with tens of thousands of expired URLs, using 410 measurably reduces re-crawl attempts and cleans up your index reports faster. There’s a good explainer over at intrepidonline.com.

404 error page

The framework as a table

Type of 404 Has backlinks? Equivalent page? Correct action
URL changed after migration or redesign Usually yes Yes 301 to the new URL
Two articles merged into one Maybe Yes 301 to the merged article
Product discontinued, successor exists Sometimes Yes 301 to successor product
Product discontinued, no successor No No 410 (or keep page live with “no longer available” + alternatives)
Expired event or job listing No No 410
Old high-authority article, deleted Yes No Recreate or 301 to closest topical page
Typo URL linked by an external site Yes Yes (the correct URL) 301 to the correct URL
Spam or scraper-invented URL Spam only No Leave the 404
Faceted filter or parameter URL never meant to exist No No Leave the 404, fix the source that generates them
Internal link points to a dead URL Irrelevant Yes Fix the internal link itself, do not rely on a redirect

Why mass-redirecting every 404 to the homepage backfires

It feels productive. It takes five minutes with a plugin. And it causes four distinct problems:

  1. Google reclassifies them as soft 404s. When a redirect destination is not a reasonable equivalent of the requested URL, Google ignores the redirect and reports a soft 404. You get no benefit at all, and you lose the clean signal a real 404 would have sent.
  2. No link equity is passed. An irrelevant redirect is treated roughly like a 404 for PageRank purposes. You did not save anything.
  3. Users bounce. Someone clicking a link to a specific tutorial and landing on your homepage has no idea what happened. A well-built 404 page with search and suggested links converts far better.
  4. You hide real problems. Broken internal links, bad canonical tags, a botched migration: all of it disappears from your reports while continuing to cause damage.

Rule of thumb: if you cannot explain in one sentence why the destination is the natural replacement for the dead URL, the redirect should not exist. A comparable breakdown sits on infidigit.com.

Recovering link equity from broken URLs: a worked example

This is the part most 404 guides skip, and it is where the actual ROI lives.

Example 1: the deleted blog post with 23 referring domains

A B2B SaaS site pruned its blog and deleted an old post at /blog/saas-churn-benchmarks-2019/. Ahrefs showed 23 referring domains still pointing at it, including two industry publications. The 404 had been live for eight months.

Action taken: a new, updated benchmarks article was published, and the old URL was 301 redirected to it. Within six weeks the new article was ranking on page one for three benchmark queries it had never targeted before, because it inherited the authority of the old URL. Cost: one article. Value: 23 referring domains recovered.

Example 2: the ecommerce category restructure

An online retailer moved from /shop/category/sub-category/ to /c/sub-category/ without redirects. Around 400 category URLs 404’d. A crawl of the old sitemap (retrieved from the Wayback Machine) plus a backlink export produced a mapping file. Old URLs were matched one-to-one to their new equivalents, not to the homepage.

Result: organic sessions on category pages recovered to roughly 90% of pre-migration levels within two months. The 30 or so old URLs with no modern equivalent were served a 410 rather than being force-fitted into an unrelated category.

Example 3: the typo backlink

A mention in a widely syndicated press article linked to /pricing-page instead of /pricing. That single typo URL generated 1,400 404 hits in a month. A one-line 301 turned a leak into a converting traffic source. Server logs found it. Search Console did not flag it for weeks.

How to run this audit yourself

  1. Export all 404s from Search Console and your crawler.
  2. In Ahrefs or Semrush, filter your broken pages by referring domains, descending.
  3. Anything with 1 or more referring domain goes into a priority list.
  4. For each, decide: recreate, redirect to a close match, or ignore (spam links only).
  5. Implement redirects server-side where possible. Verify each one returns 301 and lands on a 200, not on another redirect.
  6. Re-check in Search Console after 4 to 6 weeks.
404 error page

301 redirect best practices when you do redirect

  • One hop only. Old URL → final URL. Chains dilute value and slow crawling. Audit existing chains after any migration.
  • Keep redirects permanent. Leave them in place for at least a year, ideally forever. Removing them a month later undoes the work.
  • Prefer server-level rules (Nginx, Apache, Cloudflare, CDN edge) over plugins on large sites. Plugins add database lookups on every request.
  • Do not redirect HTTP status 404 pages with JavaScript. A client-side window.location change is not a redirect Googlebot handles the same way.
  • Update the source links too. A redirect is a safety net, not a fix. If an internal link points to a dead URL, edit the link.
  • Refresh your XML sitemap. A sitemap full of 404s and redirects tells Google your data is stale.

Soft 404s: the sneakier problem

A soft 404 is a page that returns HTTP 200 (or redirects somewhere irrelevant) while showing content that reads as “nothing here”. Google reports them separately in Search Console because they waste crawl budget and mislead users.

Common causes and fixes:

Cause Fix
Custom 404 page returning status 200 Make it return a real 404 header
Empty category, search or filter results page Noindex it, or add real content and related items
Out-of-stock product page with no content Keep it live with alternatives, or 410 it if gone for good
Irrelevant redirect to the homepage Remove the redirect, serve 404 or 410
JavaScript-rendered content that fails to load for Googlebot Test with the URL Inspection tool, add server-side rendering or prerendering

Building a 404 page that actually works

Even with perfect triage, some users will hit a 404. Make that page earn its keep:

  • Return the correct 404 HTTP status code. Non-negotiable.
  • Keep your normal header, navigation and branding so the user knows where they are.
  • Add a site search box. It is the highest-value element on the page.
  • Link to your top 5 to 8 pages or categories.
  • For ecommerce, show best sellers or products related to the URL slug the user requested.
  • Write in plain language. “This page no longer exists” beats “Error 404: resource not found”.
  • Set up a GA4 event so you can measure which broken URLs people actually reach.
  • Do not noindex it artificially and do not redirect it. A 404 status already keeps it out of the index.
404 error page

Fixing 404 errors in WordPress specifically

WordPress produces a few recurring patterns worth knowing:

  1. Everything 404s after a change: go to Settings > Permalinks and click Save. This regenerates rewrite rules and fixes it in most cases.
  2. Attachment pages: Yoast and RankMath can redirect them to the parent post or serve 404s. Do not leave thin attachment pages indexable.
  3. Deleted categories and tags: decide consciously. If they had traffic, 301 to a relevant archive. If you pruned them, 410 them.
  4. Changed post slugs: WordPress creates an internal redirect automatically, but it is unreliable after multiple changes. Add an explicit 301.
  5. Redirect plugin bloat: thousands of plugin-based redirects slow your site. Migrate stable rules to server or CDN level.

How often should you audit 404s?

Site type Frequency Priority checks
Small brochure site Quarterly Internal broken links, GSC 404 report
Content site / blog Monthly Broken backlinks, deleted post redirects
Ecommerce Weekly Out-of-stock handling, discontinued SKUs, soft 404s
Any site during migration Daily for 30 days Logs, GSC, redirect chains, sitemap status

Five mistakes to stop making today

  1. Redirecting everything to the homepage. Covered above. It is the single most common and most damaging habit.
  2. Chasing zero 404s in Search Console. The report includes URLs Google found anywhere on the web. You cannot control all of them, and you should not try.
  3. Using 302 instead of 301 for permanent moves. Temporary redirects signal the old URL will come back.
  4. Ignoring server logs. They surface the high-traffic 404s Search Console misses or reports weeks late.
  5. Fixing redirects but not the internal links. Your crawl budget and users both pay for that shortcut.

FAQ

Are 404 pages bad for SEO?

Not inherently. 404s only hurt when the broken URL had backlinks, traffic or internal links pointing at it, or when they appear at massive scale and waste crawl budget. A deleted page nobody referenced returning a 404 is completely normal and requires no action. Related reading: How to Handle 404 ‘Not Found’ Errors.

Should I redirect a 404 to the homepage?

Almost never. Google typically treats homepage redirects from unrelated URLs as soft 404s, which means no link equity is passed and the URL is still excluded. Redirect only to a genuinely equivalent page, otherwise serve a 404 or a 410.

What is the difference between 404 and 410 for SEO?

Both tell Google the page is not available. 404 means “not found” and leaves the door open, so Google keeps re-crawling for a while. 410 means “gone permanently” and is processed as a stronger removal signal, so the URL drops out of crawl queues faster. Use 410 for content you deliberately removed forever.

Why am I getting so many 404 errors?

The usual suspects are a site migration without a redirect map, changed URL structures or permalinks, deleted products and posts, broken internal links after a redesign, mistyped external links, plugin or theme conflicts, and scrapers or bots requesting URLs that never existed. Group the 404s by pattern before fixing them individually, because one root cause often explains hundreds of errors.

What is a soft 404 error in SEO?

A soft 404 is a URL that returns a success status code (200) or an irrelevant redirect while displaying content equivalent to “page not found”. Google flags it separately in Search Console. Fix it by returning the proper 404 or 410 status, or by adding real content to the page if it should exist.

How long should I keep 301 redirects in place?

At minimum one year, and ideally permanently. Google needs repeated crawls to consolidate signals, and external links to the old URL can keep sending traffic for years. Removing redirects too early throws away the equity you just recovered.

Do 404 errors affect crawl budget?

On small sites, negligibly. On large sites with tens or hundreds of thousands of URLs, yes. If a significant share of Googlebot requests hit 404s, that is crawl capacity not spent on your revenue pages. Fix the generating source (faceted navigation, broken pagination, bad templates) rather than redirecting the symptoms.

Should I fix 404s caused by JavaScript?

Yes, and check them carefully. Client-side routing can produce URLs that render fine in a browser but return 404 or empty content to Googlebot. Use the URL Inspection tool in Search Console to see the rendered HTML, and make sure your framework returns real HTTP status codes rather than rendering an error view on a 200 response.

Final word

Fixing 404 errors for SEO is a triage exercise, not a cleanup obsession. Sort your broken URLs by whether they carry value, redirect the ones with a genuine equivalent, serve 410 for what you removed on purpose, and leave the noise alone. Then spend the time you saved on recovering the handful of dead URLs that still have backlinks, because that is where the actual ranking gains hide.

If you want a second pair of eyes on your 404 and redirect strategy, our technical SEO team at Wicked SEO runs full crawl and link equity recovery audits. Get in touch and we will show you exactly which broken URLs are costing you traffic.