WordPress & Web Development

404 Errors: How to Find and Fix Them Without Hurting SEO

How to find 404 errors in Search Console, decide between a 301, a 404 and a 410, fix soft 404s and broken links in WordPress, and why redirecting everything to the homepage backfires.

Developer smiling at a desk with a laptop while a colleague works nearby

Here is a situation we see a lot. A business relaunches its WordPress site, the new design looks great, and three weeks later someone opens Google Search Console and finds a long list of URLs under “Not found (404)”. The owner’s first instinct is to redirect every one of them to the homepage so the list goes away. Please don’t. That is the fastest way to turn a harmless report into a real problem.

If you need to fix 404 errors without hurting SEO, the job is mostly triage: work out which missing URLs had value, send those to the closest equivalent page, and let the rest stay dead. This post walks through that triage the way we do it, using one example site from start to finish.

The example: a relaunched WooCommerce store

Picture a home goods retailer selling across the US and Canada. During the rebuild they changed the product permalink base from /product/ to /shop/, merged two blog categories, dropped a range of discontinued items, and removed an old “/fr/” section that only ever had a handful of machine-translated pages. Every one of those decisions produced 404s. Not every one of them needs fixing.

We will sort the broken URLs into four groups:

  • Old product URLs where the same product still exists at a new address.
  • Discontinued products with no direct replacement.
  • Blog posts that moved when the categories were merged.
  • Junk: URLs Google found from spam links, typos in someone else’s link, old staging paths and query strings nobody ever meant to publish.

Each group gets a different answer. Before we get there, it helps to be clear on what a 404 actually does to your rankings.

Does a 404 error hurt SEO?

A 404 on a page that should not exist does not hurt the rest of your site. A 404 on a page that used to earn traffic or backlinks does cost you, because that page drops out of the index and the links pointing at it stop helping you.

Google’s documentation on HTTP status codes and network errors says that 4xx responses (except 429) tell its indexing pipeline the content does not exist. New URLs that return 404 are not indexed, and URLs that were indexed get removed over time. Nothing in that process penalises the domain. The damage is local to the URLs you lost, which is why the triage matters more than the total count in the report.

The real costs of an unmanaged 404 are more ordinary:

  • A customer clicks a link in an old email campaign or a Pinterest pin and lands on a dead end.
  • A page with good backlinks disappears, and whatever value those links carried goes with it.
  • Your own menus and posts link to missing pages, which looks sloppy and wastes visitors’ time.

Step 1: Find every 404 that matters

Use three sources, because each one sees something the others miss: Search Console for what Google found, a crawler for broken links on your own site, and a backlink tool for dead pages other sites still link to.

Search Console: the Page indexing report

In Search Console, open Indexing, then Pages, and scroll to “Why pages aren’t indexed”. The rows you care about are “Not found (404)” and “Soft 404”. Click a row to see example URLs and export them. Google’s help article on the Page indexing report explains each reason. The export is limited to a sample, so on a large store treat it as a starting list rather than a complete one.

Screaming Frog: broken links on your own pages

Crawl the live site with Screaming Frog (the free version handles up to 500 URLs). Go to Response Codes, filter by Client Error (4xx), select a URL and open the Inlinks tab at the bottom. That tells you exactly which page and which link is broken, so you can fix the link at the source instead of papering over it with a redirect.

Ahrefs or Semrush: dead pages with backlinks

In Ahrefs Site Explorer, the “Best by links” report can be filtered to 404 responses. Semrush’s Backlink Analytics has a similar indexed pages view. This is where the valuable URLs hide: an old guide that a local newspaper linked to in 2019, or a product page a Canadian review blog still points at. These are the URLs worth redirecting first.

Put all three exports in one spreadsheet, remove duplicates, and add two columns: “had traffic or links?” and “best replacement URL”. GA4 helps with the first column if you look at landing page traffic for the old paths before the relaunch.

Step 2: Decide between 301, 404 and 410

Redirect with a 301 when a close equivalent exists. Leave a 404 (or use a 410) when the content is gone for good and nothing on the site really replaces it. Here is how that plays out for our example store:

Broken URL typeWhat to doWhy
Product moved from /product/ to /shop/301 to the same product at its new URLSame content, new address. This is what redirects are for.
Discontinued product with a clear successor301 to the successor productA shopper looking for the old model will accept the new one.
Discontinued product, no successorLeave it as 404 or 410, or keep the page live with a “no longer available” note and related productsRedirecting to a loosely related category can be treated as a soft 404 anyway.
Blog post moved after a category merge301 to the post’s new URLKeeps links and bookmarks working.
Old machine-translated /fr/ pages410, or 404No equivalent exists. Sending French-speaking visitors to English pages is worse than an honest “gone”.
Spam or typo URLs nobody linked to on purposeLeave as 404Nothing to preserve. Google expects these.

404 vs 410: does the difference matter?

For Google, barely. Its status code documentation groups all 4xx codes (except 429) together, so a 410 is not a magic eraser. We still use 410 for content we have deliberately removed, because it documents intent for the next developer reading the server config. If your plugin makes 410s awkward, a 404 is fine.

The homepage redirect mistake

People redirect every missing URL to the homepage because it makes the Search Console list shrink and it feels like “keeping the link juice”. It does not work that way. A redirect to an unrelated page does not answer what the visitor asked for, and Google can treat it as a soft 404. You end up with a confused visitor and no SEO benefit. Redirect only when the destination genuinely replaces the old page.

What is a soft 404, and how do you fix one?

A soft 404 is a page that returns a 200 “OK” status but looks to Google like an error or an empty page. Fix it by returning a real 404 or 410 if the page is gone, redirecting it if there is a true replacement, or adding real content if the page is meant to exist.

Google covers this in its guide to troubleshooting crawling errors. On WordPress and WooCommerce sites, the usual causes are:

  • Empty category or tag archives that say “No products were found matching your selection”.
  • Internal search result pages that got indexed.
  • A theme or page builder that shows a custom “not found” template but sends a 200 status.
  • Out-of-stock product pages stripped down to a title and nothing else.

The third one is worth checking right now. Visit a made-up URL on your site, such as /this-page-does-not-exist-123/, and look at the status code in your browser’s developer tools (Network tab) or with a header checker. If it says 200, your 404 page is lying to search engines.

Fix internal links at the source first, then add redirects for anything external you cannot edit. A redirect is a patch; an updated link is a repair.

For the source fixes, Screaming Frog’s Inlinks list tells you which posts to edit. If the same broken URL appears in dozens of posts, a careful search-and-replace with a tool like Better Search Replace or WP-CLI’s wp search-replace saves time. Take a database backup first. This is the step where people break things.

For redirects, pick one place to manage them and stick to it:

  • Rank Math’s Redirections module or Yoast SEO Premium’s redirect manager, if you already use one of those plugins.
  • The Redirection plugin, which is free and also logs 404 hits so you can spot new ones.
  • Server or edge rules (.htaccess on Apache, an Nginx config, or Cloudflare Redirect Rules and Bulk Redirects) for large pattern-based moves like our /product/ to /shop/ change. One regex rule beats 2,000 plugin entries.

Two WordPress details catch people out. First, when you change a post’s slug, WordPress remembers the old one and usually redirects it on its own, so check before you add a duplicate rule. Second, redirect chains build up over several redesigns (A to B to C). Point every old URL straight at the final destination. Google’s guide to redirects and Google Search explains how it follows them, but shorter is always safer.

If your 404s came out of a redesign or a hosting move, our website migration SEO checklist covers how to build the redirect map before launch, so you are not doing this cleanup afterwards. The same applies to moving a WordPress site to a new host or domain.

Step 4: Make the 404 page useful

Some 404s are unavoidable, so the page people land on should help them find what they wanted and must still return a 404 status code.

A good 404 page has a plain message, a search box, and links to the few places most visitors actually want: top categories, the contact page, maybe your service areas. For a store selling into both countries, linking to the US and Canadian shipping pages is a small touch that stops a lost visitor from leaving. In WordPress, the theme’s 404.php template controls this page, and most block themes let you edit the 404 template in the Site Editor. After any change, repeat the made-up URL test to confirm the status code is still 404.

Step 5: Keep it from coming back

Check the Page indexing report monthly, and run a crawl after any change to menus, permalinks or product catalogues.

The honest trade-off here is effort versus value. You can spend hours chasing every 404 in the report, and on a large WooCommerce catalogue the list will never reach zero because discontinued products and spam links keep feeding it. We would rather spend that time on the twenty URLs with backlinks and traffic than on the two thousand with neither. Some teams prefer a clean report for peace of mind, and that is a reasonable choice if the hours are cheap. Just do not confuse a shorter list with better rankings.

Broken links and stray 404 templates often show up alongside wider crawl problems, so it is worth reading our technical SEO guide to crawlability and Core Web Vitals as the next step. And if you would rather have someone handle the redirect map, the 404 template and the theme fixes, our WordPress website development team does this as part of rebuilds and maintenance for businesses in the US and Canada.

FAQ

What does error code 404 mean?

It is the HTTP status a server returns when the requested URL does not exist. The server works fine; it just has nothing at that address.

Should I redirect all 404 pages to my homepage?

No. Redirect only to a page that genuinely replaces the missing one. Blanket homepage redirects frustrate visitors and can be treated as soft 404s.

How long does Google take to drop a 404 page from search?

It depends on how often Google recrawls that URL. Popular pages drop out quickly; rarely crawled ones can linger for weeks. Google also rechecks 404 URLs now and then, which is normal.

Is a 410 better than a 404 for SEO?

Not in any way that matters much. Google’s documentation treats 4xx codes the same for indexing. Use 410 if you want to signal deliberate removal.

What is the best plugin to fix broken links in WordPress?

Use whatever SEO plugin you already have (Rank Math or Yoast Premium) for redirects, or the free Redirection plugin. Find the broken links themselves with a crawler like Screaming Frog rather than a plugin that scans on every page load.

Share LinkedIn X Facebook

Written by

Techlooker Editorial Team

Techlooker helps businesses in the USA and Canada grow through SEO and AI search, WordPress development, Salesforce and Power BI. Our team writes these guides from the work we do for clients.