404 Not Found: What It Means and How to Fix It

Key Takeaways
- ✓A 404 means the server works but has nothing at that address.
- ✓Visitors: check the address, go up one level, search for the page title.
- ✓Site owners: redirect moved pages, fix rewrite rules when every page fails.
- ✓404s do not harm other pages; do not redirect them all to the home page.
Table of Contents
- •404 Not Found: What It Means and How to Fix It
- •404 Not Found: What It Means and How to Fix It
- •What the Error Looks Like
- •If You Are a Visitor
- •What Causes a 404 Not Found
- •If It Is Your Website
- •1. One page returns 404
- •2. Every page except the home page returns 404
- •3. Files exist on disk but return 404
- •4. Find all 404s on your site
- •404 vs Soft 404 vs 410
- •Do 404 Errors Hurt SEO?
- •Frequently Asked Questions
404 Not Found: What It Means and How to Fix It
A 404 Not Found error means the server is working and answered your request, but nothing exists at the address you asked for. The page was moved, deleted or never existed, or the address has a typo. It is the most common error on the web and is rarely a sign that the whole site is down.
404 Not Found: What It Means and How to Fix It
Visitors can often find the page another way. Site owners should fix 404s on pages that people or other sites still link to, because each one is a lost visit.
What the Error Looks Like
404 Not FoundwithnginxorApacheunderneathHTTP Error 404orError 404The requested URL was not found on this server(Apache)Page not foundon a page designed by the site404. That's an error.(Google services)
If You Are a Visitor
Check the address for typos. Look at the spelling, extra characters at the end and upper or lower case letters. Many servers treat
/Aboutand/aboutas different pages.Go up one level. Remove the last part of the address to reach the section the page belonged to, or use the site's own search.
Search for the page title in a search engine together with the site's name. The page may have a new address.
Look for a saved copy on the Internet Archive's Wayback Machine if the page is gone for good.
Reload once. A page that was published a moment ago can return 404 briefly.
What Causes a 404 Not Found
| Cause | What is happening |
|---|---|
| The page was deleted or moved | The address changed and no redirect was added |
| A typo in a link | A link on your site or another site points to an address that never existed |
| Rewrite rules are missing | The CMS expects the server to pass every address to it, and the server looks for a file instead |
| Wrong document root | The server looks in a different folder from the one that holds the files |
| Case mismatch | The file is Logo.png and the link says logo.png on a case-sensitive server |
| DNS points at the wrong server | After a migration, the domain still points at the old host, which no longer has the page |
If It Is Your Website
1. One page returns 404
If the page moved, add a 301 redirect from the old address to the new one. If it was removed and has no replacement, a 404 (or a 410 Gone) is the correct answer. Then fix the links that point to it.
2. Every page except the home page returns 404
This is a rewrite problem, common after a migration or a server change. The server looks for a file named after the URL instead of passing the request to your CMS or app.
WordPress: go to Settings, then Permalinks, and click Save Changes. This rewrites the rules. On Apache, check that
.htaccessexists and thatmod_rewriteandAllowOverride Allare enabled.Nginx: the site needs a
try_filesline that falls back toindex.phporindex.html. Our Nginx 404 Not Found guide shows the exact lines for WordPress, Laravel, React and Vue.Single-page apps: the server has to return
index.htmlfor every route so the app's own router can handle it.
3. Files exist on disk but return 404
Read the server's error log to see the path it tried, and compare it with the real path. The difference shows a wrong document root, a wrong alias, or a case mismatch in the file name.
4. Find all 404s on your site
In Google Search Console, open Pages under Indexing and look at "Not found (404)". Your server's access log shows the same from the visitor side: every request with status 404 and the page that linked to it.
404 vs Soft 404 vs 410
| Term | Meaning |
|---|---|
| 404 Not Found | Nothing exists at this address; it might come back |
| 410 Gone | The page was removed on purpose and will not return |
| Soft 404 | The page says "not found" to people but returns status 200 to search engines. Fix it by returning a real 404 |
Do 404 Errors Hurt SEO?
Google says 404s are a normal part of the web and do not harm a site's other pages. The cost is in the page itself: a URL that returns 404 drops out of search results, and links pointing to it stop helping. So redirect pages that have traffic or links from other sites, and leave true dead ends as 404. A clear custom 404 page with a search box and links to your main sections keeps visitors on the site.
Frequently Asked Questions
Why do I get 404 Not Found when the page exists?
The server is looking in the wrong place. Typical reasons are missing rewrite rules, a wrong document root, a case mismatch in the file name, or a domain that still points at an old server.
Is a 404 error my computer's fault?
No. The server answered and said the address has no page. Check the address for typos; apart from that, the cause is on the website's side.
Should I redirect all 404 pages to the home page?
No. Google treats that as a soft 404, and visitors land on a page they did not ask for. Redirect each old address to its closest matching page, and let the rest return 404.
What is the difference between 404 and 410?
Both say the page is not there. A 410 adds that it was removed on purpose and is not coming back, so search engines can drop it sooner.
Unsure Which Cloud Hosting Plan Fits Your Site?
Answer 4 quick diagnostic questions to estimate the server CPU, RAM and storage you need with transparent pricing.
Cloud Infrastructure Engineer.
Related Posts
DevOps & TutorialsDocker Port Mapping Explained: -p, EXPOSE and Compose ports
How Docker port mapping works: the -p syntax, EXPOSE vs publishing, Compose ports, service names on the network, and the UFW security detail most guides skip.
DevOps & TutorialsDocker Engine vs Docker Desktop: Which One Do You Need?
Docker Engine is the open-source runtime for Linux; Docker Desktop is a desktop app with a VM, GUI and its own licence. Which to use on servers and laptops.
DevOps & TutorialsERR_CONNECTION_REFUSED: What It Means and How to Fix It
ERR_CONNECTION_REFUSED means your browser reached the address and the connection was rejected. Fixes for visitors, for localhost and for server owners.