Why Your Website Is Returning a 404 Not Found Error and How to Fix It
Summary
This guide helps you troubleshoot and resolve: Why Your Website Is Returning a 404 Not Found Error and How to Fix It. Follow the steps below to fix the issue.
Common Causes
A 404 Not Found error means your web server is reachable, but it cannot locate the specific page or file requested by the visitor. This is one of the most common website issues for small businesses and home offices. While the error can be frustrating, it is usually caused by a missing file, a mistyped URL, a broken link, incorrect file permissions, or incorrect URL capitalisation. This guide walks you through diagnosing and resolving 404 errors so your customers can access your content again.
Quick Fix Steps
- Refresh the page in your browser to rule out a temporary loading issue.
- Check the URL in the address bar for typos, missing slashes, or incorrect capitalisation.
- Clear your browser cache and cookies, then try accessing the site again.
- Test the website on a different device or network to see if the error is localised to your computer.
- Confirm the specific page exists in your website's content management system and has not been deleted or set to draft.
Detailed Instructions
Distinguish Client-Side and Server-Side 404s
A client-side 404 occurs when a visitor mistypes a URL or follows an outdated bookmark. A server-side 404 occurs when the requested resource is missing from the server, the file path is incorrect, or the server cannot read the file due to permissions or configuration issues. Identifying which type you are dealing with helps you focus your troubleshooting.
Check for Missing or Moved Pages
- Log in to your website's content management system, such as WordPress, Joomla, or your website builder dashboard.
- Navigate to the page or post that is returning the 404 error.
- Verify the page is published and not set to draft, private, or password-protected.
- If you recently changed the page URL, check whether a redirect was created to send visitors from the old address to the new one.
- If the page was deleted, either restore it from a backup or set up a 301 redirect to a relevant existing page.
Inspect File Permissions
- Access your hosting control panel or connect to your web server using an FTP client such as FileZilla.
- Locate the folder containing your website files, commonly
public_htmlorwww. - Right-click the missing file or folder and select file permissions.
- Ensure folders are set to
755and files are set to644. Incorrect permissions can prevent the web server from reading the file. - Apply the changes and refresh your website to test.
Check File Name Case Sensitivity
- Connect to your web server using an FTP client such as FileZilla or your hosting control panel's file manager.
- Locate the file that is returning the 404 error.
- Compare the file name on the server exactly with the file name in the URL.
- Remember that Linux servers are case-sensitive. For example,
About.htmlandabout.htmlare treated as different files. - Rename the file to match the URL exactly, or update the URL to match the file name, then test the page again.
Fix Broken Links and Permalinks
- If you use WordPress, log in to the admin dashboard and go to Settings, then select Permalinks.
- Without making changes, click Save Changes to flush rewrite rules and regenerate the
.htaccessfile. - For custom-coded websites, inspect your
.htaccessornginx.conffile for incorrect rewrite rules that may be pointing to non-existent files. - Use a broken link checker tool to scan your site for internal links returning 404 errors and update them to the correct URLs.
Check for Missing Index Files
- Connect to your web server using an FTP client such as FileZilla or your hosting control panel's file manager.
- Open the root folder of your website, commonly
public_htmlorwww. - Verify that a default index file exists, such as
index.html,index.php, ordefault.aspx. - If the index file is missing, upload it from a backup or recreate it, then refresh your website.
Troubleshooting
404 Error on Only One Page
- The specific page file may be missing or deleted. Restore it from your most recent backup.
- The URL may have changed without a redirect. Create a 301 redirect from the old URL to the new page.
- File permissions on that specific page may be too restrictive. Verify the file is readable by the web server.
- The file name capitalisation may not match the URL exactly, particularly on Linux servers.
404 Error on the Entire Website
- The website's root directory may be missing the default index file, such as
index.html,index.php, ordefault.aspx. - Your hosting account may be suspended due to non-payment or a terms-of-service violation.
- Incorrect rewrite rules in
.htaccessornginx.confmay be directing all traffic to non-existent files.
404 Error Only on Mobile Devices
- Clear the mobile browser cache and site data.
- Check for mobile-specific redirects or plugins that may be sending visitors to incorrect URLs.
- Test on a different mobile network to rule out local caching issues.
.htaccess or nginx.conf, download a backup copy of the file to your computer. Incorrect syntax can make your website inaccessible.If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.
If you have worked through these steps and your website is still returning 404 errors, Open a Ticket with our support team for further assistance.
Still Having Issues?
💻 Open a Ticket