404 Not Found
A 404 means the server is working but can't find what you asked for. The address is wrong, the file isn't where the server looks, or a rule isn't sending the visitor to the right place.
Symptom, cause, fix
| Symptom | Likely cause | Fix |
|---|---|---|
| One page returns 404, the rest work | Wrong address, deleted page, or renamed page | Section 1 |
| Every WordPress page except the home page returns 404 | Permalinks need re-saving, or .htaccess is missing |
Section 2 |
| Images return 404 | File isn't uploaded, wrong folder, or capital letters differ | Section 3 |
| Whole site shows 404 or the server's default page | Files are in the wrong folder, or the domain points elsewhere | Section 4 |
| Old addresses from a previous site return 404 | No redirects set up | Section 5 |
| 404 after moving a site | Site URL or links still point to the old place | Section 6 |
1. Check the address
- Look for typos, extra spaces, or a missing file ending, such as
.html. - Names on the server are case-sensitive.
Menu.htmlandmenu.htmlare different files. - Compare with the file name in Account → Hosting → your site → Files → File manager.
2. WordPress permalinks
After a restore, migration, or change of domain, pretty links (/about/) can break while ?p=12 links still work.
- In WordPress, go to Settings → Permalinks.
- Don't change anything. Click Save Changes.
- Reload the page.
If that fails, check that .htaccess exists in your site folder and contains the WordPress block.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Hidden files such as .htaccess show in the file manager automatically. See .htaccess basics with examples.
3. Missing image or file
- In the file manager, go to the path in the error. For
https://example.ca/images/loaf.jpg, checkpublic_html/images/loaf.jpg. - Match the case and spelling exactly.
- If you moved the site, make sure you copied all folders. In WordPress, the media files are in
wp-content/uploads.
4. Wrong folder
Your domain has a document root, the folder the server reads files from. If files aren't in it, you get a 404 or the default page.
- Go to Account → Hosting → your site → Websites → Domains.
- Check the Document Root for your domain. For the main domain it's usually
public_html. - Put your files there, not in a subfolder. If you uploaded a folder
mysite/, the site is atexample.ca/mysite/unless you move its contents up.
See Where your website files live.
5. Redirect old addresses
If you rebuilt the site and old pages are in search results, send visitors to the new ones.
Redirect 301 /old-menu.html https://example.ca/menu/
See Redirect a page or domain.
6. After moving or changing the URL
Check Settings → General for the WordPress and Site Address. If they're wrong, see Change a WordPress site's URL.
Make your 404 page helpful
Visitors will still hit 404s now and then. A good 404 page offers a link to the home page and a search box. See Custom error pages (404, 500).
Check the error log
The error log records missing files. A sample line:
[Mon Nov 30 11:20:09.004 2026] [core:info] [client 203.0.113.25]
AH00128: File does not exist: /home/nsbakery/public_html/images/loaf.jpg
The path shows where the server looked. See Read your site's error log.
Still stuck?
See My website won't load or What to include when you ask for help.
Still stuck? Ask us and we'll walk you through it.