Home / Fix guides / Soft 404 errors / WordPress

WordPress fix guide

How to fix soft 404 errors on WordPress

A soft 404 is a page that tells Google "OK" but looks empty or missing. Here is how to find the cause on a WordPress site and fix it safely.

A soft 404 means your server answered with a normal success code (200), but Google decided the page looks like a "not found" page or has almost nothing on it. Google then leaves it out of search results. It is not a penalty, but if the page was meant to rank, you lose that traffic. The fix depends on why Google thinks the page is empty.

This page covers the WordPress side. For the general explanation, see the soft 404 guide.

Why WordPress sites get soft 404s

These are the usual causes:

  • A plugin or redirect rule sends every missing URL to the homepage. Google sees a deleted page that "works" and shows unrelated content.
  • A custom "Page not found" page was built as a normal WordPress page and people are redirected to it. It returns 200, not 404.
  • Empty category, tag, search or author archives that show "Nothing found".
  • Thin pages, such as a placeholder page with one line of text, or a product page with no description.
  • WooCommerce products that are out of stock or removed, and empty product categories.
  • The page loads its content with JavaScript that fails or is blocked, so Google sees a blank page.
  • A caching or security plugin that serves an error message with a 200 status.

Step by step fix

  1. Get the list. In Google Search Console open Indexing then Pages and click the reason Soft 404. Export or note the URLs. Group them: real pages, deleted pages, archives, products.
  1. Inspect one URL. Paste it into the top bar (URL Inspection) and run Test live URL. Open the screenshot and rendered HTML. If it looks blank or shows an error, you have found the problem.
  1. Check the real status code. In your browser open developer tools, go to the Network tab, reload the page and look at the first request. Or run this in a terminal:
curl -I https://example.com/the-page/
  1. Test a made up URL. Visit something like /this-page-does-not-exist-123/ on your site. A healthy WordPress site returns a 404 status. If it returns 200 or redirects to the homepage, the cause is site wide, so go to step 5.
  1. Remove the redirect all rule. Check your redirect or SEO plugin (for example Redirection, Yoast SEO Premium, Rank Math or All in One SEO) for a setting that sends all 404s to the homepage. Turn it off. Also look in .htaccess (in the site root, Apache hosts) for a catch all RewriteRule, and ask your host if you are not sure. Back up the file before editing.
  1. Fix the 404 template. Your theme controls the 404 page through 404.php, or the 404 template in block themes (usually Appearance then Editor then Templates, depending on your WordPress version). Do not replace it with a normal page. If the made up URL test still returns 200 after step 5, disable caching and security plugins one at a time to find the cause (ideally on a staging copy, and turn security plugins back on right after testing), or ask your theme developer.
  1. Decide for each URL. Use this table:
SituationWhat to do
Page should exist but is thinAdd real, useful content and internal links
Page is gone for good, no replacementLet it return 404 (or 410)
Page moved or has a close equivalent301 redirect to that specific page
Empty category or tagAdd posts, delete the term, or mark it noindex
Product out of stockKeep the page with details and alternatives, or redirect to the closest category if discontinued
  1. Redirect carefully. Only redirect to a page that truly replaces the old one. A redirect to the homepage for an unrelated page is often treated as a soft 404 again.
  1. Check page rendering. If a real page looks blank in the live test, check whether robots.txt or a plugin blocks CSS or JavaScript files (see blocked by robots.txt). Fix the script error that stops the content loading.
  1. Validate. Back in Search Console, open the Soft 404 report and click Validate Fix. Google rechecks the URLs over a few days to a couple of weeks.

Things to avoid

  • Do not add noindex to important pages just to make the report go away. Check that you did not already do this by accident (see accidental noindex tag).
  • Do not delete pages that still get visits or links without setting up a proper redirect.
  • Do not install several redirect plugins at once. They can conflict.

Finding them before Google reports them

Search Console can be slow to report. A broken links and 404 sweep finds pages that look missing or return the wrong status. SiteMonday runs this in week 6, and the report lists what it found and ranks the fixes. Fixing them is up to you or your developer.

When it comes back

If new soft 404s appear after you fixed the old ones, something is creating them: a plugin that generates empty pages, a product import, or a theme update. Note the date the URLs first appeared and think about what changed on the site around then.

Not on WordPress? Read the general guide to soft 404 errors, or the guide for Shopify, Next.js, React, Magento, WooCommerce, Drupal.

Questions

Does WordPress return a proper 404 by default?

Yes, a standard WordPress install returns a 404 status for URLs that do not exist. Soft 404s usually come from a plugin, redirect rule, caching layer or a custom error page built as a normal page.

Should I redirect deleted pages to my homepage?

Usually no. Google often treats this as a soft 404. Redirect only to a closely related page, and otherwise let the old URL return 404 or 410.

How do I make a custom 404 page in WordPress without a soft 404?

Edit your theme's 404 template (`404.php` or the 404 template in the Site Editor) instead of making a normal page. Then visit a made up URL and confirm it still returns a 404 status.

Are empty category and tag pages soft 404s?

They can be, because WordPress serves them with a 200 status and a "nothing found" message. Add posts, delete the unused term, or mark it noindex.

How long does Validate Fix take in Search Console?

Google usually needs a few days to a couple of weeks to recheck the URLs. If some fail, the report lists which ones, so you can look at them again.

More WordPress fixes