
In this article
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:
- A custom error page configured to return 200 instead of 404.
- Deleted pages that redirect to the home page, which Google often treats as a soft 404.
- Empty category, search or product pages that show "no results".
- Pages with almost no content.
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
- Open the Pages report in Google Search Console and look at "Not found (404)" and "Soft 404".
- Scan your site with the broken link checker to find links that lead nowhere. Read how to find and fix broken links for the full routine.
- Check your server or analytics logs for the most requested missing addresses.
Step 2: decide what to do with each one
- The page was moved or replaced: add a 301 redirect to the closest matching page. Test it with the redirect checker.
- The page was removed for good with no equivalent: let it return 404, or
410 Goneto say it is deliberately removed. Do not redirect everything to the home page. - The link is wrong: fix the link on the page that contains it. Often this is better than a redirect.
- The page should exist: restore it.
Step 3: build a helpful 404 page
A good 404 page keeps visitors on your site. Include:
- A clear message such as "We could not find that page".
- Your normal header and navigation.
- A search box.
- Links to your home page, popular pages and contact page.
- A friendly tone, without blaming the visitor.
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
- Broken link checker: Find 404s, server errors and redirecting links on a page.
- HTTP status and header viewer: Status code, response headers, redirects, compression and caching.
- Redirect checker: Trace every hop of up to 10 URLs.
