Contents
With a 404, the browser reaches the server and gets a normal answer, but nothing lives at that path. That’s different from connection errors like “This site can’t be reached”. The problem is the link, the location of the files, or the site’s routing rules, not the server itself.
What causes a 404 error
- A typo in the URL or an outdated link in an email or post.
- A deleted or renamed page with no redirect to the new address.
- Letter case: Linux servers treat
About.htmlandabout.htmlas different files. - Files in the wrong folder: the site was uploaded into a subfolder, or an addon domain points to a different document root.
- Missing WordPress rewrite rules after a migration or an
.htaccessedit, so only the homepage works. See WordPress posts returning 404. - Single-page apps (React, Vue) when you refresh an inner route, because the server looks for a file that doesn’t exist.
Fixing it as a visitor
Check the URL and remove any extra characters at the end, then open the site’s homepage and find the content through its menu or search box. If a link on the site itself sent you there, tell the owner it’s broken.
Fixing it as the site owner
- Confirm the file exists: open Files → File Manager in cPanel and check the name and case. To see which folder each domain uses, open Domains → Domains and look at the Document Root column.
- Rebuild WordPress rules: in WordPress go to Settings → Permalinks and click Save Changes. Make sure
.htaccesscontains the standard block:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
- React and Vue apps: send every non-existent path to
index.htmlwith the same rule, replacingindex.phpwithindex.html. - Redirect old URLs with a 301 redirect to the closest replacement:
Redirect 301 /old-page/ https://example.com/new-page/
The htaccess redirect generator builds these rules for you.
- Make a useful 404 page with search and links to key sections, and enable it with
ErrorDocument 404 /404.htmlin.htaccessor under Advanced → Error Pages in cPanel. It must still return status 404: a “not found” page that returns 200 is a soft 404 and confuses search engines. - Find broken URLs: open the Pages report in Google Search Console and look for “Not found (404)”. See our Search Console setup guide.
Prevention
- Add a 301 redirect the same day you change any page’s URL.
- Update your sitemap and internal links after deleting content.
- Use lowercase only in file names and URLs.
On ArabyHost
Sites run on LiteSpeed, which reads .htaccess like Apache, so rewrite and redirect rules work as written. cPanel and File Manager open with one click from the Araby Panel, and you can ask the Araby AI assistant to check your files and error log to find the cause. If you deleted a page by mistake, you can restore it from the daily JetBackup backups.
FAQ
Do 404 pages hurt my Google rankings?
A few 404s are normal and Google doesn't penalise them. But broken internal links and deleted pages that have backlinks waste visitors, so redirect those with a 301 to the closest replacement.
Why does my WordPress homepage work while every other page shows 404?
The rewrite rules in .htaccess are usually missing or broken. Go to Settings → Permalinks and click Save Changes so WordPress writes them again.
What's the difference between 404 and 410?
404 says the page isn't there without saying why; 410 Gone says it was removed on purpose and won't return. Both drop out of search results over time.