How to Fix 404 Errors in WordPress (2026): Step-by-Step Guide

To fix 404 errors in WordPress, find the broken URLs in Google Search Console or a 404 log, then 301-redirect any URL that has a relevant replacement and let truly deleted pages return a 404 or 410. You don’t need to fix every 404: Google says they don’t harm your site’s indexing or ranking, so focus on URLs that people or your sitemap still point to.

This guide walks through which 404s matter, how to find them, and how to fix 404 errors in WordPress with free plugins like Redirection and Rank Math or with Yoast SEO Premium. It’s research-based, drawn from Google Search Central documentation and each plugin’s official pages, not hands-on testing. For background on Google’s latest wording, see our news post on Google’s updated 404 errors guidance.

What a 404 error is (and what a soft 404 is)

A 404 is the “Not Found” status code your server returns when a URL doesn’t exist. WordPress shows your theme’s 404 template and sends that status automatically when nothing matches the requested address.

A soft 404 is different. It happens when a page returns a normal “200 OK” status but looks like an error or an empty page. Google’s HTTP status code documentation says these show up as soft 404s in Search Console. Google’s 404 help page also lists common workarounds that create them: redirecting missing pages to the home page, padding a dead page with filler content, or blocking 404 URLs in robots.txt.

Which 404 errors you should fix (and which to ignore)

Based on Google’s guidance, sort each broken URL into one of these buckets:

SituationWhat to do
Page moved to a new URL (slug change, new structure)301 redirect the old URL to the new one
Page deleted, but a close replacement exists301 redirect to the closest relevant page
Page deleted with no replacementLet it return 404 or 410; remove it from your sitemap and internal links
Misspelled or alternate spelling of a real URL that gets visitsRedirect it to the correct page
URL listed in your XML sitemapFix the sitemap or the page; Google flags submitted URLs as errors
Random URL that never existed (bots, typos on other sites)Ignore it

Google says it currently treats a 410 (“Gone”) the same as a 404, so you don’t need to switch deleted pages to 410 for search reasons. Its crawler documentation adds that indexed URLs returning a 4xx code are dropped from the index and crawled less often over time, and that 404 entries fall out of the Search Console report after about a month.

How to fix 404 errors in WordPress: step by step

Step 1: Find your 404s in Search Console

Open Google Search Console and go to Indexing > Pages. Under “Why pages aren’t indexed,” look for Not found (404) and Soft 404. Click a row to see example URLs, then use the URL Inspection tool to see where Google found each one (the referring page or sitemap). If you haven’t connected your site’s data yet, our guide to setting up GA4 on WordPress covers Site Kit, which also links Search Console.

Step 2: Log 404s on your own site

Search Console only shows what Googlebot hits. A 404 log inside WordPress shows what real visitors and other crawlers hit, which is often more useful. Two free options:

  • Redirection plugin: logs 404s, groups repeated errors and lets you redirect them in bulk.
  • Rank Math 404 Monitor: enable it under Rank Math SEO > Dashboard > Modules (you need Advanced Mode). Logs appear under Rank Math SEO > 404 Monitor.

Rank Math’s 404 Monitor documentation notes that its log limit defaults to 100 entries and resets when exceeded, and that “Advanced” mode (which records referrers and user agents for every hit) fills up quickly. Use Simple mode day to day and switch to Advanced only while you’re tracking down a source.

Step 3: Fix broken internal links first

If a 404 comes from a link on your own site, edit that link to point at the live URL. A redirect would work, but fixing the link removes an extra hop for visitors and crawlers. Check menus, widgets, footer links and old posts, since these are where outdated URLs tend to hide.

Step 4: Add 301 redirects for moved or replaced content

For URLs that still get visits or links from other sites, add a 301 (permanent) redirect to the most relevant live page. Google describes a 301 as a strong signal that the new URL should be treated as the canonical one, while a 302 is a weak signal meant for temporary moves. Keep redirects to a single hop where you can; Google follows up to 10 hops, but chains slow visitors down.

In Rank Math, the documented process is to hover over an entry in the 404 Monitor, click Redirect, enter the full destination URL and save. The source URL is filled in for you. You can select several entries and redirect them together when they share a destination.

In the Redirection plugin, open Tools > Redirection, add the source and target URLs, or redirect directly from the 404 log.

Step 5: Don’t redirect everything to the home page

Some “fix all 404s” plugins send every missing URL to the home page. Google’s help page lists this among the approaches that create soft 404s and make your site structure harder to understand. If no relevant page exists, a proper 404 is the better answer.

Step 6: Clean up your XML sitemap

Remove deleted URLs from your sitemap so you aren’t asking Google to crawl pages that no longer exist. SEO plugins such as Rank Math and Yoast generate sitemaps automatically, so deleting or unpublishing a post usually removes it. If a dead URL still appears, check for a stale cached sitemap. After adding redirects, clear your page cache too. Our WP Rocket vs W3 Total Cache comparison explains how each plugin handles cache clearing.

Step 7: Make your 404 page useful

Some 404s will always happen. A good 404 template keeps visitors on your site with a search box, links to popular posts and a clear way back to main sections. Confirm it still returns a real 404 status; a custom error page built with a page builder should not return 200. You can check the status with your browser’s developer tools (Network tab) or the URL Inspection tool.

Step 8: Prevent new 404s when you change URLs

WordPress core already redirects many old post slugs to their new address, but that doesn’t cover every case, such as category changes or deleted pages. The Redirection plugin can watch for permalink changes and create redirects automatically, and Yoast SEO Premium’s redirect manager offers to create one whenever you delete or move content.

Best WordPress plugins to fix 404 errors compared

PluginPrice404 logRedirectsBest for
RedirectionFree (no premium version)Yes, grouped, with bulk redirect301 redirects, regex, Apache and Nginx export, CSV/JSON import and exportAny site, especially if you don’t use Rank Math
Rank MathFree; paid plans billed annually add extrasYes (404 Monitor module)301, 302, 307, plus 410 and 451 codes, regex matchingSites already using Rank Math for SEO
Yoast SEO Premium$118.80/year list price (discounted at time of writing)Relies on Search ConsoleAutomatic redirects on delete or URL change; 301, 302, 307, 410, 451Yoast users who want redirects created automatically

Prices and features come from each vendor’s official pages on Nov. 30, 2026 and may change. Rank Math lists features like scheduled redirects and CSV import/export as PRO-only. For a broader look at the two SEO suites, read our Yoast vs Rank Math comparison.

Pros and cons

  • Redirection – Pros: free, over 2 million active installs, strong import/export. Cons: one more plugin to maintain if your SEO plugin already handles redirects.
  • Rank Math – Pros: 404 log and redirects in the free plugin you may already run. Cons: modules hidden until you switch to Advanced Mode; small default log limit.
  • Yoast SEO Premium – Pros: prompts you to set a redirect the moment you delete or move content. Cons: paid only, and no built-in 404 log.

Who should do what

  • Small site owners: check Search Console monthly and fix only 404s with links, traffic or a sitemap entry.
  • Agencies and freelancers: add a 404 and redirect review to every site migration and redesign checklist, and export redirect rules before launch.
  • Large content sites: use a 404 log to catch high-traffic broken URLs quickly, and combine fixes with a wider WordPress speed and maintenance routine.

FAQ

Do 404 errors hurt SEO?

Not on their own. Google says 404s don’t harm indexing or ranking. The real cost is lost visitors and lost link value when a popular or linked page breaks.

Should I use a 404 or 410 for deleted pages?

Either works. Google currently treats 410 the same as 404, so use whichever your tools make easier.

How do I fix a soft 404 in WordPress?

If the page is gone, make it return a real 404 or 410, or 301-redirect it to a relevant page. If the page should exist, add meaningful content so it no longer looks empty. Also check thin tag, search or filter archives, which often trigger soft 404 reports.

How long until fixed 404s leave Search Console?

Google says 404 entries drop out of the report after about a month. A URL removal request won’t clear them faster.

Can I redirect all 404s to my home page?

It’s not recommended. Google treats mass home page redirects as soft 404s. Redirect only to relevant pages and let the rest return a 404.

Share this article

Picture of Gearshift Team

Gearshift Team

Leave a Reply

Your email address will not be published. Required fields are marked *

How to Fix 404 Errors in WordPress (2026): Step-by-Step Guide