TR EN

HTTP 404 Not Found

The HTTP 404 Not Found status code indicates that the origin server cannot find the requested resource.

404

HTTP 404 Not Found

HTTP RFC Standard

What Does HTTP 404 Mean?

The HTTP 404 Not Found status code indicates that the origin server cannot find the requested resource.

Causes and How to Fix HTTP 404

Broken hyperlinks, typos in URLs, or deleted pages without proper 301 redirects.

SEO & Search Engine Crawl Impact

404 is appropriate for removed content without a replacement. Redirect to a relevant substitute when one exists; do not redirect every missing URL to the homepage.

Testing HTTP 404 via Terminal (cURL)

Inspect the HTTP response status and headers directly from your terminal:

curl -I -L https://example.com
curl -s -o /dev/null -w "%{http_code}\n" https://example.com

Web Server Configuration (Nginx & Apache)

Configure custom error handling in your web server:

# Nginx Custom Error Handler
error_page 404 /404.html;
location = /404.html {
    root /var/www/html;
    internal;
}

Other HTTP Status Codes

HTTP 200HTTP 301HTTP 302HTTP 400HTTP 401HTTP 403HTTP 410HTTP 429HTTP 500HTTP 502HTTP 503HTTP 504

Google: HTTP status codes and crawling

Frequently Asked Questions

How do I fix an HTTP 404 status code?
Broken hyperlinks, typos in URLs, or deleted pages without proper 301 redirects. Check server error logs (/var/log/nginx/error.log) and verify application route handlers.
Does HTTP 404 affect my SEO rankings?
404 is appropriate for removed content without a replacement. Redirect to a relevant substitute when one exists; do not redirect every missing URL to the homepage.