# 404 Not Found in IIS

> Fix an IIS 404 Not Found: read the sub-status (404.0 to 404.20), then check the file, site binding, handler mapping, MIME type, request filtering and size limits.

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

Guide Error · HTTP status codes

Fix an IIS 404 Not Found: read the sub-status (404.0 to 404.20), then check the file, site binding, handler mapping, MIME type, request filtering and size limits.

4 min

read

9

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

404 4xx · Client error

The short answer

In IIS, a 404 Not Found carries a sub-status that separates a missing file (404.0) from a missing site (404.1), handler (404.4), MIME mapping (404.3) or a request filtering rule (such as 404.5, 404.14 or 404.19). Read the sub-status in the IIS log first, because many IIS 404s mean a rule blocked the request, not that the file is gone.

1. [Why IIS has so many kinds of 404](#why-iis-has-so-many-kinds-of-404)
2. [Fixes that match the sub-status](#fixes-that-match-the-sub-status)
3. [Verify the fix and watch the SEO side](#verify-the-fix-and-watch-the-seo-side)

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%2Fiis%20(%22404%20Not%20Found%20in%20IIS%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%2Fiis%20(%22404%20Not%20Found%20in%20IIS%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%2Fiis%20(%22404%20Not%20Found%20in%20IIS%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%2Fiis%20(%22404%20Not%20Found%20in%20IIS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Explained

## Why IIS has so many kinds of 404

RFC 9110 says a 404 means the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. IIS uses both halves: a sub-status after the dot tells you whether the file is missing or a rule refused the request. The general meaning is on [404 Not Found](/errors/http/404). The same status on other servers is covered for [Apache](/errors/http/404/apache) and [nginx](/errors/http/404/nginx).

The sub-status is recorded in the IIS log as `HttpSubStatus`, one of the default log fields. The default log directory is `%SystemDrive%\inetpub\logs\LogFiles`. For a quick look at the details, request the page from the server itself: `httpErrors` defaults to `errorMode="DetailedLocalOnly"`, so only local requests get the detailed error.

IIS 404 sub-status codes (from Microsoft's table)
| Sub-status | Meaning | What to check |
| 404.0 | File or directory not found, moved or does not exist | The path, spelling and virtual directory mapping |
| 404.1 | Site not found | That the requested website exists on this server |
| 404.2 | ISAPI or CGI restriction | Whether the ISAPI or CGI resource is restricted on the server |
| 404.3 | MIME type restriction | The MIME mapping for the file extension is invalid or not set |
| 404.4 | No handler configured | No handler maps the file name extension of the URL |
| 404.5 | Denied by request filtering configuration | The URL contains a blocked character sequence |
| 404.6 / 404.7 | Verb denied / file extension denied | The HTTP verb or extension is not allowed |
| 404.8 / 404.9 | Hidden namespace / hidden file attribute | A hidden segment or a file with the hidden attribute |
| 404.10, 404.14, 404.15 | Header, URL or [query string](/glossary/url-parameters) too long | Request limits for headers, `maxUrl` and `maxQueryString` |
| 404.11 / 404.12 | Double escape sequence / high-bit characters | The URL contains them and the server is set to refuse |
| 404.13 | [Content length](/glossary/content-length) too large | `maxAllowedContentLength` |
| 404.17 | Dynamic content mapped to the static file handler | The handler mapping for the file type |
| 404.18 / 404.19 / 404.20 | Query string sequence denied / denied by filtering rule / too many URL segments | The request filtering rules and limits for the site |

_02_Limits behind the 404.1x codes

## Fixes that match the sub-status

Setting

### `maxAllowedContentLength`

Default

30000000 bytes, about 28.6 MB

Sub-status

404.13

Setting

### `maxUrl`

Default

4096 bytes

Sub-status

404.14

Setting

### `maxQueryString`

Default

2048 bytes

Sub-status

404.15

Raise the upload limit for one site (web.config)

```
<configuration> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="104857600" /> <!-- 100 MB, in bytes --> </requestFiltering> </security> </system.webServer> </configuration>
```

For the plain 404.0 case, Microsoft's checklist is short: confirm the file in the URL exists and sits in the right place, and if the site uses a virtual directory, confirm it points to the folder that holds the file. Common causes include files that were renamed, moved or deleted, and a virtual directory that is mapped to the root of a drive on another server. For static files, a missing MIME mapping gives 404.3. Hidden files give 404.9, so check the file's hidden attribute.

**An IP rule can answer 404**IP Security's `denyAction` accepts `NotFound`, so a deny rule can look like a missing page. Check `ipSecurity` if the file exists and the 404 appears only for some clients.

**Custom error pages can hide the sub-status**If `errorMode` is `Custom`, detailed errors are off even for local requests. Use the log's `HttpSubStatus` column, or switch to `Detailed` while testing, and set it back after.

_03_How it works

## Verify the fix and watch the SEO side

Google does not index URLs that return a 4xx status and removes indexed ones that start returning it; see [4xx errors](/seo-issues/4xx-errors).

1. 01

### Find the entry

Open the newest file in the log directory (by default `%SystemDrive%\inetpub\logs\LogFiles`) and read the status and sub-status for the URL.
2. 02

### Change the matching setting

Use the tables above, then repeat the request.
3. 03

### Check for soft 404s

If you added a custom 404 page, it must still send a 404 [status code](/glossary/http-status-codes); see [soft 404 errors](/seo-issues/soft-404-errors).

Questions

## Asked a lot.

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

_01_ How do I fix 404 Not Found in IIS?

Read the sub-status in the IIS log. For 404.0, confirm the file exists in the right folder and virtual directory. For 404.1 to 404.20, fix the site, handler, MIME mapping or request filtering rule the sub-status points to.

_02_ What does IIS 404.13 mean?

"Content length too large": the request's Content-Length header is larger than the server allows. The `maxAllowedContentLength` default is 30000000 bytes, about 28.6 MB.

_03_ What does IIS 404.3 mean?

"MIME type restriction": the MIME mapping for the requested extension is invalid or not set. Add the extension to the MIME map for the site.

_04_ Why does IIS return 404 when the file exists?

A rule can refuse the request with a 404 sub-status: request filtering, a hidden file or segment, a missing handler, a size limit or an IP deny rule that uses `NotFound`.

Sources · 9

## Every fact, linked and dated.

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

- rfc-editor.org
- microsoft.com
- google.com

1. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [HTTP status codes in IIS 7.0 and later (Microsoft Learn)](https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/www-administration-management/http-status-code) learn.microsoft.com · checked 2026-10-25
3. 03 [Troubleshoot HTTP 404 File Not Found in IIS (Microsoft Learn)](https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/site-behavior-performance/troubleshoot-404-file-not-found-error) learn.microsoft.com · checked 2026-10-25
4. 04 [IIS: Request Limits <requestLimits> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/requestlimits/) learn.microsoft.com · checked 2026-10-25
5. 05 [IIS: Request Filtering <requestFiltering> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/) learn.microsoft.com · checked 2026-10-25
6. 06 [IIS: HTTP Errors <httpErrors> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/httperrors/) learn.microsoft.com · checked 2026-10-25
7. 07 [IIS: Site Log Files <logFile> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/sitedefaults/logfile/) learn.microsoft.com · checked 2026-10-25
8. 08 [IIS: IP Security <ipSecurity> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/ipsecurity/) learn.microsoft.com · checked 2026-10-25
9. 09 [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

## Keep learning

[All errors](/errors)

[Learn 404 Not Found HTTP status codes](/errors/http/404) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next 403 Forbidden in IIS HTTP status codes](/errors/http/403/iis) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 404 errors
[404 Not Found caused by .htaccess](/errors/http/404/htaccess) [404 Not Found in Django](/errors/http/404/django) [404 Not Found in Flask](/errors/http/404/flask) [404 Not Found in WordPress](/errors/http/404/wordpress) [404 Not Found on Apache](/errors/http/404/apache)

More in 404 Not Found
[404 Not Found caused by .htaccess](/errors/http/404/htaccess) [404 Not Found in Django](/errors/http/404/django) [404 Not Found in Flask](/errors/http/404/flask) [404 Not Found in IIS](/errors/http/404/iis) [404 Not Found in WordPress](/errors/http/404/wordpress) [404 Not Found on Apache](/errors/http/404/apache) [404 Not Found on nginx](/errors/http/404/nginx)

Terms on this page
[URL parameters](/glossary/url-parameters) [Content-Length (HTTP header)](/glossary/content-length) [HTTP status codes](/glossary/http-status-codes)

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
