# 404 Not Found

> A 404 means the server found nothing at that URL. See who causes it, how visitors get past it, and how site owners trace and fix it on nginx, Apache and CDNs.

Canonical: https://scaplet.com/errors/http/404

Guide Error · HTTP status codes

A 404 means the server found nothing at that URL. See who causes it, how visitors get past it, and how site owners trace and fix it on nginx, Apache and CDNs.

5 min

read

6

sources

Oct 22, 2026

updated

Scaplet Editorial Team

author

404 4xx · Client error

The short answer

A 404 Not Found response means the server could not find a current page at that URL, or will not say whether one exists. The cause is almost always the URL (a typo, or a page that moved or was deleted) or the server's path mapping. Check the address first. If you run the site, fix the link, restore the page or redirect it.

1. [What does 404 Not Found mean?](#what-does-404-not-found-mean)
2. [Who causes it?](#who-causes-it)
3. [How to get past a 404 as a visitor](#how-to-get-past-a-404-as-a-visitor)
4. [How a site owner finds the cause and fixes it](#how-a-site-owner-finds-the-cause-and-fixes-it)
5. [What it does to SEO](#what-it-does-to-seo)

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F404%20(%22404%20Not%20Found%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F404%20(%22404%20Not%20Found%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F404%20(%22404%20Not%20Found%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F404%20(%22404%20Not%20Found%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Explained

## What does 404 Not Found mean?

RFC 9110 defines it this way: the origin server did not find a current representation for the target resource, or is not willing to disclose that one exists. In plain terms, the request reached a working server, but nothing is served at that address. MDN's list of common causes is short: "mistyped URLs or pages that are moved or deleted without redirection."

A 404 does not say whether the page is gone for good. If the server knows the removal is permanent, RFC 9110 says [410 Gone](/glossary/410-gone) is preferred. A 404 is also heuristically cacheable, so a proxy or browser may keep showing it for a while after you fix the page unless cache headers say otherwise.

Because something answered the request, the network path works. That separates a 404 from a [502](/errors/http/502) or a [503](/errors/http/503), where the server or a proxy in front of it failed. It also differs from a [400](/errors/http/400), where the server rejected the request itself as malformed.

_02_Where a 404 usually comes from

## Who causes it?

Cause

### Mistyped or truncated URL

Typical owner

Visitor or the site that linked

Where to look

The address bar, the referring link

Fix

Correct the address; ask the linking site or fix your own link

Cause

### Page moved or deleted without a redirect

Typical owner

Site owner

Where to look

CMS history, deploy changes, access logs for the old URL

Fix

Redirect the old URL to its replacement, or restore the page

Cause

### Server maps the URL to the wrong file path

Typical owner

Site owner or host

Where to look

Web server config (root, alias, DocumentRoot, rewrite rules)

Fix

Correct the path mapping; see the nginx and Apache pages below

Cause

### Rewrite or routing rule missing

Typical owner

Developer

Where to look

Rewrite rules, framework routes, `.htaccess` loading

Fix

Add the missing route or rule, then retest the exact URL

Cause

### Origin returned it through a CDN

Typical owner

Origin server

Where to look

Compare the response at the origin and at the edge

Fix

Fix the origin; purge the cached 404 if the CDN stored it

Cloudflare's documentation is explicit that it does not generate 404s for customer websites: it only proxies the response from the origin server, so a 404 on a Cloudflare-powered site points at the origin. A CDN can also cache an origin's 404 (RFC 9110 calls a 404 heuristically cacheable), so test the origin directly before changing edge settings.

_03_How it works

## How to get past a 404 as a visitor

1. 1

### Check the address

Look for typos, a missing or extra character, or a trailing piece pasted from a chat or email. Retry the corrected address.
2. 2

### Trim the path

Remove path segments from the end one at a time. If `/blog/2024/old-post` fails, try `/blog/` and look for the page from there.
3. 3

### Use the site's own search or menu

If the page moved, the site's navigation or search is usually the quickest route to its new address.
4. 4

### Reload once, then try another network

A cached 404 can linger. A hard reload rules out your browser, and a second device or network rules out a local DNS or proxy problem.
5. 5

### Tell the site owner

If a link on their own site led you to the 404, they usually want to know. Link errors cost them visitors silently.

There is no way to force a page into existence from the browser. If the page was removed, a 404 is the correct answer.

_04_How it works

## How a site owner finds the cause and fixes it

Start with the exact URL from the failing request, character for character, including case, [trailing slash](/glossary/trailing-slash) and [query string](/glossary/url-parameters). Then work down the stack.

nginx: fall back to a 404 and a custom page

```
location / { try_files $uri $uri/index.html $uri.html =404; } error_page 404 /404.html;
```

Apache: custom 404 page

```
ErrorDocument 404 /errors/not-found.html
```

Both snippets come from each vendor's directive reference. The stack-specific causes are on the [nginx 404 page](/errors/http/404/nginx) and the [Apache 404 page](/errors/http/404/apache).

Causes and fixes differ by server and platform. See the 404 guides for [Apache](/errors/http/404/apache), [IIS](/errors/http/404/iis), [nginx](/errors/http/404/nginx), [WordPress](/errors/http/404/wordpress).

1. 01

### Reproduce it from the command line

Run `curl -sI https://example.com/missing-page` and read the status line and headers. Do it against the public hostname and, if you can, against the origin to see which layer answers.
2. 02

### Read the access and error logs

Find the request and note the path the server tried. Both nginx and Apache write errors to the file set by `error_log` and `ErrorLog`.
3. 03

### Compare the URL to the file path

On a file-based site, the server appends the [URL path](/glossary/url-slug) to a configured root directory. If the file is not at that location, you get a 404.
4. 04

### Check redirects and routes

If the page moved, add a redirect. If your framework or CMS builds the page, confirm the route or permalink rule still exists.
5. 05

### Serve a useful 404 page

Keep the real 404 [status code](/glossary/http-status-codes) and give visitors a way forward. Never answer with a 200 for a missing page.

_05_Explained

## What it does to SEO

Google doesn't index URLs that return a 4xx status code, and ignores any content it receives from them. URLs that are already indexed and start returning a 404 are removed from the index, and newly encountered 404 pages aren't processed. A few 404s on pages that really are gone are normal. A burst on pages that should exist is a problem to fix.

Cloudflare's docs note that 404s often go untracked by traditional analytics tools, so check server logs and [Search Console](/glossary/google-search-console). See [4xx errors](/seo-issues/4xx-errors) for how to audit them, and [soft 404 errors](/seo-issues/soft-404-errors) for pages that show a "not found" message but return 200. Google documents the full behavior in how HTTP status codes affect its crawlers.

Related errors: [.htaccess](/errors/http/404/htaccess), [CloudFront](/errors/cdn/cloudfront-404), [AWS Amplify](/errors/cdn/amplify-404), [Firebase Hosting](/errors/cdn/firebase-hosting-404), [Cloudflare Pages](/errors/cdn/cloudflare-pages-404), [static sites served from a repository](/errors/cdn/github-pages-404).

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ Why does the 404 error come?

The server could not find anything at the requested URL. Usual causes are a mistyped URL, or a page that was moved or deleted without a redirect. Server path or rewrite misconfiguration also produces 404s on pages that should exist.

_02_ Is error 404 my fault?

Often not. A 404 is a client error class, but the usual causes are a broken link, a deleted page or a server mapping problem. Check the address you typed first. If the address is right and the page should exist, the site owner has to fix it.

_03_ How do I fix a 404 Not Found error?

As a visitor, correct the URL, trim the path, or use the site's search. As an owner, find the request in the logs, compare the URL to the file path or route, then restore the page or add a redirect to its replacement.

_04_ Is a 404 permanent?

A 404 does not say. RFC 9110 prefers 410 Gone when the server knows the removal is permanent. A 404 can also be heuristically cached, so a fixed page may keep showing 404 until the cache expires.

Sources · 6

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- mozilla.org
- cloudflare.com
- google.com
- nginx.org
- apache.org

1. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [404 Not Found - HTTP - MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/404) developer.mozilla.org · checked 2026-10-25
3. 03 [Error 404: Not Found - Cloudflare Support docs](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/4xx-client-error/error-404/) developers.cloudflare.com · checked 2026-10-25
4. 04 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25
5. 05 [Module ngx_http_core_module - nginx documentation](https://nginx.org/en/docs/http/ngx_http_core_module.html) nginx.org · checked 2026-10-25
6. 06 [Core Features - Apache HTTP Server 2.4](https://httpd.apache.org/docs/2.4/mod/core.html) httpd.apache.org · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn 404 Not Found on Apache HTTP status codes](/errors/http/404/apache) [Related GitHub Pages 404 Not Found CDN and hosting errors](/errors/cdn/github-pages-404) [Read next 404 Not Found on nginx HTTP status codes](/errors/http/404/nginx) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 404 errors
[CloudFront 404 Not Found](/errors/cdn/cloudfront-404) [Firebase Hosting 404](/errors/cdn/firebase-hosting-404) [GitHub Pages 404 Not Found](/errors/cdn/github-pages-404) [404 Not Found caused by .htaccess](/errors/http/404/htaccess) [404 Not Found in Django](/errors/http/404/django)

Nearby in errors
[403 Forbidden in Spring Boot](/errors/http/403/spring-boot) [403 Forbidden in WordPress](/errors/http/403/wordpress) [404 Not Found on Apache](/errors/http/404/apache)

More in HTTP status codes
[HTTP 412 Precondition Failed](/errors/http/412) [HTTP 431 Request Header Fields Too Large](/errors/http/431) [HTTP 499 Client Closed Request](/errors/http/499) [HTTP 500 Internal Server Error](/errors/http/500) [HTTP 501 Not Implemented](/errors/http/501) [HTTP redirect codes](/errors/http/http-redirect-codes) [HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [100 Continue](/errors/http/100) [101 Switching Protocols](/errors/http/101) [402 Payment Required](/errors/http/402) [403 Forbidden](/errors/http/403) [404 Not Found](/errors/http/404) [406 Not Acceptable](/errors/http/406) [411 Length Required](/errors/http/411) [413 Request Entity Too Large](/errors/http/413) [414 URI Too Long](/errors/http/414) [415 Unsupported Media Type](/errors/http/415) [416 Range Not Satisfiable](/errors/http/416) [417 Expectation Failed](/errors/http/417) [418 I'm a Teapot](/errors/http/418) [421 Misdirected Request](/errors/http/421) [422 Unprocessable Content (Unprocessable Entity)](/errors/http/422) [423 Locked](/errors/http/423)

Terms on this page
[410 Gone](/glossary/410-gone) [Trailing slash in URLs](/glossary/trailing-slash) [URL parameters](/glossary/url-parameters) [URL slug](/glossary/url-slug) [HTTP status codes](/glossary/http-status-codes) [Google Search Console](/glossary/google-search-console)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
