Troubleshooting

404 Not Found Error: causes and fix

Quick answer: A 404 means the site is up but that page doesn't exist. Visitors should check the URL and use the site's search; site owners should re-save permalinks and check redirects.

General Easy About 10 min 8 steps Internet, Browser & Website Errors
404 Not Found Error: causes and fix — A woman in an office rests her chin on her hand while looking at her laptop screen.

Symptoms

  • "404 Not Found" or "Page not found"
  • The home page loads but posts and pages return 404 (WordPress)
  • A link from Google or social media leads to a 404 page

Likely causes

  1. The address was mistyped or the link was copied incompletely.
  2. The page was deleted or moved without a redirect.
  3. On WordPress, the permalink settings or the .htaccess file are broken.
  4. A browser or CDN cache is serving an outdated version.
  5. The site was recently migrated and some files or database tables didn't transfer.

Step-by-step fix

Start from step one and test again after each step; steps go from the simplest to the most technical.

  1. Check and shorten the URL

    Watch for uppercase letters, hyphens and file extensions. A link copied from a message or email may be cut off. Remove the last part of the address to go up one level until you reach a page that loads.

  2. Search the site or Google

    Search for the article title in the site's own search, or on Google together with the site's name; the new address usually turns up. If the page was deleted, a copy may still exist in web archives.

  3. Bypass the cache

    Reload with Ctrl+F5 or open the page in an Incognito window. If it loads there, your browser cache was outdated.

  4. Site owners: re-save permalinks

    In WordPress, go to "Settings > Permalinks" and click "Save Changes" without changing anything. This rewrites the URL rules in .htaccess and fixes the most common cause of 404s after a migration or a plugin install.

  5. Site owners: check .htaccess

    If that didn't help, use your host's File Manager to confirm .htaccess exists in the site root, is writable and contains the standard WordPress block (# BEGIN WordPress … # END WordPress). On an Nginx server this file is ignored and a try_files rule is needed in the server config; ask your host.

  6. Site owners: add 301 redirects

    If you changed a page's URL or moved the site, set up 301 redirects from the old addresses to the new ones with a redirect plugin or in .htaccess. This keeps the traffic and SEO value of old links.

  7. Site owners: purge cache and CDN

    If you use a caching plugin or a CDN such as Cloudflare, purge everything after each change; otherwise visitors may keep seeing the 404 for a while.

  8. Site owners: check Search Console

    In Google Search Console, the "Pages" report lists URLs that return 404. Redirect the ones with traffic or backlinks; the rest can stay, because a 404 for a page that's truly gone is normal and isn't penalized.

If nothing worked

If you're a visitor and can't find a replacement, the content was probably removed; ask through the site's contact page or search web archives.

If you own the site and every page except the home page returns 404 even after re-saving permalinks, ask your host whether mod_rewrite is enabled; it is sometimes off after a server move.

Don't edit WordPress core files to "fix" 404s, and always back up before making changes.

Frequently asked questions

Do 404 errors hurt my site's SEO?

A few 404s are normal and aren't penalized. The problem is when popular pages or pages with backlinks return 404, or your menu links to broken pages; redirect those.

What is a soft 404?

It's a page that seems to load (status 200) but says "not found" or is nearly empty. Google treats it as a 404 anyway, so your error page should return a real 404 status code.

Related problems

Terms used on this page

More Internet, Browser & Website Errors problems

All problems Internet, Browser & Website Errors

Last updated:

Type a few letters of the topic; spelling variants are treated as the same.