Skip to content
Free website migration on every plan, done by our team.Learn more ›
Guides

What does "404 Not Found" mean, and how do I fix it?

What a 404 Not Found error means, why it happens, how to find broken pages on your site, fix them with redirects, and make a helpful custom 404 page.

Short answer: A 404 means the server is working, but the page you asked for doesn't exist at that address. It usually happens when a page was deleted or moved, or a link was mistyped. Fix it by redirecting the old address to the right page with a 301 redirect, correcting the links that point to it, and giving visitors a helpful custom 404 page for the cases you can't predict.

Every website has a few 404s, and a handful won't hurt your search rankings. But 404s on pages that used to get traffic, or on links inside your own site, lose visitors and sales. Here is how to find and fix them.

What a 404 actually tells you

When a browser asks for a page, the server answers with a status code. 200 means "here it is". 404 means "this address doesn't exist here". It is a normal, honest answer: the site is up, but there's nothing at that address.

Related codes:

CodeMeaningWhen to use it
404 Not FoundNothing at this address, reason unknownThe default for missing pages
410 GoneRemoved on purpose, permanentlyContent you deleted and won't replace
301 Moved PermanentlyNow lives at a new addressPages you moved or merged
"Soft 404"A page that looks empty or missing but returns 200A mistake: fix it to return a real 404 or real content

See HTTP status codes for every code, and 301 vs 302 redirects.

Why 404s happen

  • A page was deleted, or its address (slug) was changed.
  • The site moved to a new platform or domain without redirects.
  • A typo in a link, in your menu, an email campaign or another website.
  • WordPress permalinks were changed or need resetting. See WordPress permalinks.
  • A product was removed from your shop.
  • Case or slash differences: on many servers /About and /about are different addresses.

How to find 404s on your website

  1. Google Search Console: the Pages report lists addresses Google tried that returned "Not found (404)". See Google Search Console.
  2. Your hosting logs: cPanel's Errors and Raw Access logs show 404s and where visitors came from.
  3. A link checker: crawl your site with an SEO crawler or a broken-link plugin to find internal links that are broken.
  4. Analytics: look at visits to your 404 page and the addresses people tried.

How to fix them

1. Redirect old addresses that still get visits or links

If the page moved or a similar page exists, add a 301 redirect from the old address to the new one. On WordPress, a redirect plugin makes this easy. On cPanel hosting you can use the Redirects tool or .htaccess:

Redirect 301 /old-page/ https://yourdomain.com/new-page/

See .htaccess basics. Redirect to the most relevant page, not simply your home page.

2. Fix the links

Update menus, buttons and links inside your own pages so they point straight to the right address, without going through a redirect. Ask other websites to update important links if you can.

3. Let truly dead pages go

If a page is gone for good and nothing replaces it, a 404 or 410 is the correct answer. You don't need to redirect everything.

4. Reset WordPress permalinks

If many pages suddenly return 404 after a migration or update, go to Settings → Permalinks and click Save without changing anything. This rebuilds WordPress's address rules.

Make a helpful custom 404 page

A good 404 page keeps visitors on your site. Include:

  • a short, friendly message explaining the page wasn't found;
  • a search box;
  • links to your most useful pages: home, products or services, and contact;
  • your brand's look, so people know they're still on your site.

Make sure it returns a real 404 status, not 200, so search engines don't treat it as a normal page. You can check the status of any address with our website speed test, which shows the status code and any redirects.

Do 404 errors hurt SEO?

Not on their own. Google expects some pages to disappear. What does hurt is losing pages that had traffic or links without redirecting them, and broken links inside your own site, which waste visitors' time and search engines' crawling. When you move hosts or redesign, keep the same addresses or redirect every old one. See changing host without losing SEO.

Frequently asked questions

Is a 404 error my fault or the website's?

If you typed the address, check for typos. If you clicked a link, the website (or the site that linked) has a broken link.

Should I redirect all 404s to my home page?

No. Search engines treat mass redirects to the home page like 404s anyway, and visitors find them confusing. Redirect only to genuinely relevant pages.

How do I fix 404 errors after moving my WordPress site?

Re-save your permalinks, check that the .htaccess file was copied, and make sure the site address in Settings → General matches your domain.

What's the difference between 404 and 500 errors?

A 404 means the page doesn't exist. A 500 means the server ran into an error while building the page. See fixing 500 errors.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.