404 Not Found & Search 404: How to Fix Them and Build a 404 Page That Works
A 404 error means the server was reached but the page you asked for doesn’t exist at that address. A “search 404” is the same dead end inside a site’s own search: you search, and the site has nothing to show. Both are fixable. If you’re a visitor, a few quick checks usually get you to the page. If you own the site, you fix 404s with the right redirect or status code, and you turn the 404 page itself into a way back into your site instead of an exit.
This guide covers both sides: what the errors mean, whether they hurt SEO, how to find every 404 on a WordPress site, which fix to use for each one, and exactly what a good 404 page should include.
Quick answer
- Visitor: check the URL for typos, remove everything after the last slash, use the site’s search or menu, or try the page in the Wayback Machine.
- Site owner: find 404s in Google Search Console and a crawler, 301-redirect URLs that have links or traffic to the closest matching page, return 410 for content you removed on purpose, and make sure your custom 404 page still returns a real 404 status.
What is a 404 error?
Every time a browser asks a server for a page, the server answers with an HTTP status code. 200 means “here it is”. 301 means “it moved, go here”. 404 Not Found means the server is working, but there’s nothing at that address.
That’s the key difference from a site being down. With a 404 the domain, the hosting and the rest of the site are fine. Only that one URL leads nowhere.
The most common causes:
- A page or product was deleted, or its slug was changed without a redirect.
- A link (on your site or someone else’s) has a typo.
- The site moved to a new URL structure, for example after a redesign or a switch from
/blog/post-name/to/post-name/. - A plugin, category or tag archive was removed.
- Someone typed or shortened the URL by hand.
This happens on every website over time. In a 2024 study, Pew Research Center found that 38% of webpages that existed in 2013 were no longer accessible ten years later, and 23% of news webpages contained at least one broken link. An Ahrefs study of more than two million websites found that at least 66.5% of links pointing to them since 2013 had rotted. Broken links aren’t a sign of a bad site. Ignoring them is.
What does “search 404” or “search not found” mean?
People use “search 404” for two different things:
- A site search with no results. You type into a website’s search box and get “Nothing found” or “Search not found”. Technically the results page usually returns
200, but for the visitor it’s the same dead end as a 404. - A 404 page that offers search. Many sites put a search box on the 404 page so a lost visitor can look for what they wanted. This is one of the most useful things a 404 page can have.
Messages like “Unable to process this search” usually come from the search feature itself failing (a timeout, a blocked request or a plugin error), not from a missing page. If you see that on your own site, check your search plugin and server error log first.
Seeing a 404 as a visitor? Try these first
- Check the URL for typos. Look for doubled letters, missing hyphens, or a stray character at the end.
- Go up one level. Delete the last part of the URL after the final
/and load it again. You often land on the category or section the page lived in. - Use the site’s search or menu. Search for the page title or a distinctive word from it.
- Search Google with
site:. For examplesite:example.com speed guidesearches just that website. - Check the Wayback Machine. Paste the URL into web.archive.org to see an older copy of a page that was deleted.
- Clear cache or try another browser. Rarely, a cached redirect or an old version of the page causes the error.
If none of that works, the page is gone. Contact the site owner: you may be the first person to tell them.
404 vs soft 404 vs 410 vs redirect
These four get mixed up constantly, and choosing the wrong one is behind most 404 problems.
| Response | What it tells Google | Use it when |
|---|---|---|
| 404 Not Found | The page doesn’t exist (maybe temporarily) | A URL never existed, or you’re not sure yet |
| 410 Gone | The page was removed on purpose and won’t come back | You deleted content deliberately and have no replacement |
| 301 Redirect | The page moved permanently, follow it | A close replacement exists: same topic, product or intent |
| Soft 404 (a mistake) | The page says “not found” but returns 200, so Google has to guess | Never: fix it by returning a real 404/410 or a 301 |
A soft 404 is what Google reports when a URL shows an error or almost no content but tells the browser everything is fine (200). Common causes in WordPress: a custom 404 page built as a normal page that everything redirects to, empty category or tag archives, out-of-stock product pages with no content, and redirecting every dead URL to the homepage.
Do 404 errors hurt SEO?
A 404 on a page that’s genuinely gone is normal and doesn’t penalise the rest of your site. Google’s own documentation says URLs returning a 4xx code are not indexed and are removed from the index if they already were, and that Google gradually crawls them less often (Google Search Central).
404s cost you in three practical ways:
- Lost link value. If other websites link to a URL that now 404s, the value of those backlinks is wasted. A 301 to the right page recovers it.
- Lost visitors. Anyone arriving from an old link, bookmark or search result hits a dead end, and most leave.
- Wasted internal links and crawling. Internal links to dead pages send visitors and Googlebot nowhere and make your site look neglected.
Soft 404s are worse than real ones, because Google keeps crawling URLs that should be gone and has to decide for itself what they are.
How to find 404 errors on your WordPress site
Use at least two of these. Each one sees different 404s.
1. Google Search Console
Go to Indexing → Pages, scroll to “Why pages aren’t indexed” and open Not found (404) and Soft 404. Click a URL and use Inspect URL to see where Google found the link. This shows the 404s Google actually cares about.
2. A site crawler (Screaming Frog)
Crawl your site with Screaming Frog SEO Spider (free up to 500 URLs), then filter Response Codes → Client Error (4xx). Open Inlinks at the bottom to see every page that links to each broken URL. This finds broken links on your own pages before Google does.
3. Ahrefs
In Site Audit, the “4XX page” issue lists broken pages with the internal links pointing to them. To find 404 pages that have backlinks, open Site Explorer → your domain → Best by links and filter by HTTP code 404. These are the URLs worth redirecting first, because they still receive link value from other sites.
4. Your analytics
In GA4, create an exploration filtered on a page title that contains your 404 title (for example “Page not found”), with Page location and Page referrer as dimensions. That shows which broken URLs real people hit, and where they came from.
5. Server logs
Your hosting control panel (cPanel → Raw Access or Errors) lists every request that returned 404, including bots probing for files that never existed. Ignore the junk; look for real page URLs.
How to fix each 404
Work through the list with this order of priority: URLs with backlinks, then URLs with traffic, then URLs with internal links, then everything else.
| Situation | Fix |
|---|---|
| Page moved or slug changed | 301 redirect to the new URL |
| Page deleted, but a close replacement exists | 301 redirect to that replacement |
| Page deleted on purpose, no replacement | Return 410, or leave the 404 |
| Typo in an internal link | Correct the link at the source |
| Typo in someone else’s link with real traffic | 301 the typo URL to the right page, and ask the site to fix it |
| Junk URL (bots, random strings) | Leave the 404. It’s the correct answer |
Don’t redirect every 404 to the homepage. Google treats irrelevant redirects like soft 404s, and visitors who wanted a specific page are no better off. Redirect only where the new page genuinely answers the same need.
How to add redirects in WordPress
- Rank Math: Rank Math → Redirections → Add New (free).
- Yoast SEO Premium: SEO → Redirects. Premium also offers a redirect automatically when you change a slug or delete a post.
- Redirection plugin: free, and logs 404s so you can redirect them from the log.
- .htaccess on Apache or LiteSpeed hosting, for a handful of permanent redirects:
Redirect 301 /old-page/ https://example.com/new-page/
Redirect 410 /removed-page/Back up .htaccess before editing it. One typo can take the whole site offline.
Fix “search 404”: when your site search finds nothing
A zero-result search is a dead end visitors walk into themselves. To reduce it:
- Look at what people search for. Track site searches in GA4 (the
view_search_resultsevent with thesearch_termparameter), then fix the terms that return nothing. - Add synonyms and handle typos. WordPress’s built-in search matches exact words only. A search plugin such as Relevanssi or SearchWP can search more fields and rank results better; for very large catalogues, hosted search services handle typos and synonyms.
- Never show an empty results page. Show popular posts, categories or a contact link under “No results”.
- Keep search pages out of Google. Internal search results are thin pages. Block them in robots.txt or noindex them; Yoast SEO’s crawl settings can do this for you.
What a good 404 page includes
Google recommends a custom 404 page that helps people find what they were looking for and encourages them to explore the rest of the site, while still returning a 404 status. In practice that means:
- A clear, friendly message. Say plainly that the page isn’t here. No jargon, no blame.
- A search box, front and centre. This is the “search 404” done right.
- Links to your most useful pages. Your main services, best guides or top categories, so the visitor has an obvious next step.
- Your normal header, menu and footer. The visitor should still feel on your site.
- A way to report the problem or contact you.
- A real 404 status code. The page looks friendly, but the server must still answer
404, or you’ve created a soft 404. - Fast and light. No heavy images or scripts on a page people only see when something went wrong.
- Tracking. Make the page title unique (“Page not found”) so you can count 404 visits in analytics.
You can see these applied on this site: try a URL that doesn’t exist.
How to create a custom 404 page in WordPress
Use the method your theme supports, so WordPress keeps returning the correct 404 status:
- Kadence (with Kadence Pro): create a Kadence Element and set its display condition to the 404 page, replacing the content area.
- Block themes (Twenty Twenty-Five and similar): Appearance → Editor → Templates → Page: 404, and edit it with blocks.
- Classic themes: edit
404.phpin a child theme. - Elementor Pro, Divi and other builders: use the theme builder’s 404 template.
Avoid plugins or settings that redirect all missing URLs to a normal page called “404”. That page returns 200 and every missing URL becomes a soft 404.
Check that your 404 page returns a real 404
Open any made-up URL on your site, open Chrome DevTools (F12) → Network, reload, and click the first request. The status should read 404. Or from a terminal:
curl -I https://example.com/this-page-does-not-exist/The first line should say HTTP/2 404. If it says 200 or 301, fix that before anything else.
404 maintenance checklist
- Check Search Console’s Not found and Soft 404 reports once a month.
- Crawl the site after every redesign, migration or URL change.
- Add a redirect whenever you change a slug or delete a page that has links or traffic.
- Fix internal links at the source instead of relying on redirects.
- Keep redirect chains to one hop: old URL → final URL.
- Confirm the 404 page still returns
404after theme or plugin updates.
Don’t want to watch for broken links yourself? Monthly 404 and broken-link checks are part of my WordPress Care Plan. If your site has other problems too, start with a $25 speed and technical audit.
FAQ
Is a 404 error bad for SEO?
A 404 for a page that’s really gone is normal and doesn’t harm the rest of your site. It becomes a problem when the URL has backlinks or traffic, which a 301 redirect would keep, or when your own pages link to it.
Should I redirect all 404 pages to the homepage?
No. Google treats irrelevant redirects like soft 404s, and visitors don’t get what they came for. Redirect only to a page that answers the same need; otherwise let the URL return 404 or 410.
What’s the difference between 404 and 410?
404 means “not found”, which can be temporary. 410 means “gone on purpose”. Use 410 when you deliberately removed content and won’t replace it.
How do I find 404 errors in Google Search Console?
Go to Indexing → Pages, then open “Not found (404)” under “Why pages aren’t indexed”. Inspect each URL to see where Google found the link.
How do I look up 404s in Ahrefs?
Use Site Audit and open the “4XX page” issue for internal broken pages. For broken pages with backlinks, go to Site Explorer → Best by links and filter by HTTP code 404.
Why does my site search say “Nothing found”?
The search found no exact match. Add a better search plugin, review the terms people search for, and show helpful links on the no-results page.
Sources
- When Online Content Disappears, Pew Research Center, 2024
- Link Rot Study, Ahrefs
- HTTP status codes and Google Search, Google Search Central
Article By
Shahab Ud Din
I’m a WordPress speed and Core Web Vitals specialist. Over 5+ years I’ve optimized 150+ sites, fixing slow load times, failing Core Web Vitals and poor mobile scores. Best result: mobile LCP from 30.7s to 2.4s in 3 days. No fix, no fee.







