Back to all status codes
404
Not Found
The server cannot find the requested resource. The URL may be incorrect or the resource deleted.
Common Causes
- •Incorrect URL
- •Resource deleted
- •Typo in URL
- •Missing file
- •Broken link
Fix Solutions
Check URL spelling
Verify the URL is correct and matches the server's file structure.
Set up redirects
If the resource moved, set up a 301 redirect to the new location.
Create custom 404 page
Provide a helpful 404 page with navigation options.
Code Examples
# Custom 404 page
error_page 404 /404.html;
location = /404.html {
root /var/www/html;
internal;
}