cPanel & Hosting How-Tos How to Fix a 404 Not Found Error on Your Website
A 404 Not Found error means the server is fine, but the exact page or file the visitor requested doesn’t exist at that address. It’s one of the most common — and most fixable — errors. Here’s how to solve it yourself.
What causes a 404
- A moved, renamed or deleted page — the old URL no longer points anywhere.
- A typo in the link or address — a wrong slug or capital letter.
- Broken WordPress permalinks — the classic “home page works, everything else 404s”.
- A missing or broken
.htaccessfile — the rules that route pretty URLs are gone. - A missing file — an image or download that was never uploaded or was removed.
How to fix it
1. Check the URL
Look for typos, extra spaces or wrong capitalisation. URLs are case-sensitive on Linux hosting, so /About and /about are different.
2. Fix WordPress permalinks (most common)
If your home page loads but inner pages 404, log in to WordPress, go to Settings → Permalinks, and click Save Changes (you don’t need to change anything). This rebuilds the rewrite rules and the .htaccess file.
3. Check your .htaccess file
In cPanel File Manager, open public_html and make sure .htaccess exists (enable “Show Hidden Files” if needed). If it’s missing or corrupted, saving permalinks (above) recreates it for WordPress. For how these rules work, see .htaccess explained.
4. Confirm the file is actually there
For a missing image or file, open File Manager and check it exists at the exact path in the URL. Re-upload if it’s gone.
5. Redirect pages you removed on purpose
If you deleted a page that still gets traffic or links, send its old URL to a relevant live page with a 301 redirect — see set up a redirect in cPanel. This keeps visitors (and SEO value) instead of losing them to a 404.
Set a friendly 404 page
A custom 404 page keeps visitors on your site instead of bouncing. WordPress themes include one; you can also point one in .htaccess with ErrorDocument 404 /404.html.
Still stuck?
If a URL that should work keeps 404ing, your error logs will show what the server tried to load. Our site-down troubleshooting guide walks through the wider checks too.
Every Web Hosting and WordPress Hosting plan at Genhost includes cPanel with File Manager, redirects and error logs, so you can fix 404s yourself in minutes. If you’re unsure, our support team is happy to help.
Frequently asked questions
What does a 404 error mean?
A 404 Not Found means the server is working but the specific page or file the visitor asked for doesn't exist at that address — usually because it was moved, renamed, deleted, or the link has a typo.
Why do all my WordPress pages suddenly show 404?
If the home page works but every other page 404s, it's almost always permalinks. Go to Settings > Permalinks in WordPress and click Save Changes to rebuild the rules, which also restores the .htaccess rewrite rules.
Are 404 errors bad for SEO?
A few are normal and harmless. But important pages returning 404, or lots of broken internal links, waste crawl budget and frustrate visitors. Redirect removed pages to a relevant live page with a 301 redirect.