Blog · 7 min read

404 pages and soft 404 errors: how to fix them

Published

404 pages and soft 404 errors: how to fix them

Every website has some missing pages. A visitor mistypes an address, an old link goes stale or you delete a product. What matters is how your site responds. Done right, a 404 costs you nothing. Done wrong, you lose visitors and confuse Google.

This applies to every platform, whether your site runs on WordPress, Shopify, Wix, Squarespace, Webflow or custom code. The principles are the same everywhere.

What a 404 error is

A 404 is the status code a server returns when it cannot find the page requested. A proper 404 sends the code 404 and shows a friendly message. It is normal and does not harm your rankings by itself. Google expects missing pages and simply drops them from its index over time.

What a soft 404 is

A soft 404 is a page that looks like "not found" to visitors but sends the wrong status code, usually 200 OK. Common causes:

Google reports these in Search Console as "Soft 404". They waste crawl time, and the page can stay in the index when it should not.

Step 1: find your 404 errors

Step 2: decide what to do with each one

Step 3: build a helpful 404 page

A good 404 page keeps visitors on your site. Include:

Do not leave the default server page or a blank screen. Do not add heavy images or scripts, since slow error pages are frustrating.

Step 4: make sure it returns the right code

Open a made-up address such as yourdomain.com/this-page-does-not-exist and check the response with the HTTP header checker. The status must be 404, not 200 and not a redirect. If it is wrong, fix your platform's error-page setting or server rule.

Step 5: keep your sitemap clean

Only list working pages in your XML sitemap. Remove deleted addresses, since sitemap entries that return 404 send Google mixed signals.

Watch out for hacked 404s

Hackers sometimes create thousands of spam pages, or change your 404 page to redirect visitors elsewhere. If Search Console shows 404s or indexed pages for addresses you never made, or your error page behaves strangely, read how to check if your website is hacked and what website cloaking is.

Common questions

Do 404 errors hurt my SEO?

Not by themselves. They hurt when important pages with links or traffic return 404, or when many internal links point to missing pages.

Should I redirect every 404 to the home page?

No. Google treats that as a soft 404 and visitors are confused. Redirect only to a closely related page.

404 or 410?

A 410 tells Google the page is gone on purpose, which can remove it from the index slightly faster. A 404 is fine for most sites.

How often should I check?

Review the Search Console report monthly and after any redesign, migration or large content change.

Free tools for this problem

More guides