Error 404: File Not Found
A 404 error means the server cannot find the file at the URL that was requested. This is one of the most common web errors and usually has a simple fix.
Common Causes
- Wrong filename or path: The URL may have a typo, or the file may be in a different directory than expected. Remember that Linux servers are case-sensitive:
Page.htmlis not the same aspage.html. - File was deleted or moved: The file may have been removed or renamed. Check your public_html folder in cPanel File Manager.
- Broken permalink structure: In WordPress, go to Settings > Permalinks and click Save (even without making changes). This regenerates the .htaccess rewrite rules.
- Missing .htaccess: If your CMS relies on .htaccess for URL routing and the file is missing or empty, all pages except the homepage may return 404.
Custom 404 Page
You can create a custom 404 page so visitors see a helpful, branded message instead of a generic error. Add this to your .htaccess: ErrorDocument 404 /404.html and create a 404.html file with your custom content.
