Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Troubleshooting

404 Not Found: what it means and how to fix it

A 404 Not Found means the server is reachable but has no page at the requested URL. Typical causes are a mistyped address or a page that was moved or deleted without a redirect. A 404 does not say whether the page is gone for good or only missing for now.

The short answer
  • The server works, but nothing exists at that exact URL.
  • Visitors: check the spelling, then go to the home page and search.
  • Owners: redirect moved pages with a 301 and let deleted pages return a real 404 or 410.
Try the website status checkerFree, live, no signup

What causes a 404 error?

Mistyped or truncated URL

A typo, a missing character, or a link copied with its last letters cut off points to a path that does not exist.

Page moved without a redirect

After a redesign or slug change, the old URL has nothing behind it and returns 404 until a redirect is added.

Page deleted

Content was removed on purpose, but links, bookmarks and search results still point at it.

Rewrite rules missing

On CMS sites, pretty permalinks need a working rewrite rule. If it is lost, every inner page returns 404 while the home page loads.

Wrong site or document root

The domain points at a server directory that does not hold the site files, so every path returns 404.

Case or trailing-slash mismatch

Many servers treat /About and /about, or /page and /page/, as different paths.

Should the response be 404, 410 or a redirect?

Pick the status that matches what happened to the URL
SituationBest responseWhy
Page moved to a new URL301 redirect to the new URLVisitors and crawlers land on the replacement, and search engines learn the new address.
Page removed, no replacement, never coming back410 GoneStates the removal is deliberate and likely permanent. MDN says to use 404 if you do not know whether it is permanent.
Page missing, unsure if it returns404 Not FoundMakes no claim about permanence.
URL never existed (typo)404 Not FoundNothing to redirect to.
Not-found page that returns 200 OKFix: return a real 404This is a soft 404. Search engines can index it as a real page.

Definitions follow MDN: 404 Not Found and MDN: 410 Gone.

How do you fix a 404 as a site owner?

  1. 01

    Confirm the status code

    Run curl -I https://example.com/missing-page and read the first line. A page that looks like an error but shows 200 is a soft 404.

  2. 02

    Find where the links come from

    Check your internal links, sitemap, and the Pages report in Google Search Console. Fix internal links to point at the live URL instead of redirecting them.

  3. 03

    Redirect moved pages

    Add a one-to-one 301 from the old URL to the closest equivalent page. Do not redirect everything to the home page.

  4. 04

    Restore or retire the rest

    If the page should exist, restore it. If not, leave a true 404 or send 410, and remove it from the sitemap.

  5. 05

    Check rewrite rules

    If every inner page fails at once, look at the web server rewrite configuration or the CMS permalink settings, not at the content.

  6. 06

    Make the error page useful

    Keep the 404 status code, add a search box and links to your main sections.

How do you set up a custom 404 page?

Apache and nginx: the status code stays 404
# Apache (.htaccess or virtual host)
ErrorDocument 404 /notfound.html

# nginx (server block)
error_page 404 /notfound.html;

The Apache line comes from the MDN 404 page. Use a local path: pointing ErrorDocument at a full URL makes Apache send a redirect instead of a 404.

What a 404 does to search visibility

Google treats 4xx responses other than 429 as "content does not exist": indexed URLs are removed from the index, and newly found 404 URLs are not processed. A few 404s on dead URLs are normal. A 404 on a page you want to rank is a problem to fix.

Common questions

Is a 404 error my fault as a visitor?

Usually not. The server answered, so your connection works, but the address has no page. Check the URL for typos, remove anything after the last slash, or search the site. If a link on the site leads to the error, tell the site owner.

Do 404 errors hurt SEO?

Not by themselves. Google drops 404 URLs from its index and crawls them less over time. The damage comes from a valuable page returning 404 or from internal links pointing at dead URLs. Redirect pages that had traffic or links to their closest replacement.

What is the difference between 404 and a soft 404?

A 404 returns the 404 status code. A soft 404 shows a "page not found" message but returns 200 OK, so crawlers treat it as a normal page. Fix it by sending a real 404 or 410 status with the not-found page.

Should I redirect all 404 pages to the home page?

No. Redirect each moved page to its closest equivalent. Mass redirects to the home page confuse visitors who expected specific content, and Google can treat irrelevant redirects as soft 404s. If no equivalent exists, return a 404 or 410.

How do I find 404 errors on my site?

Use the Pages indexing report in Google Search Console, crawl the site with a link checker, and read your server access logs filtered for status 404. Uptime and content monitors can also alert you when an important URL stops returning 200.

Catch broken pages before visitors do

Aepto Content Monitoring checks pages for broken or changed content on paid plans, and uptime checks alert you when a page stops responding.