How to fix Error 404 not found
Error 404 is an HTTP status code indicating that the server can’t find a web page. This usually occurs when the URL is incorrect, the page has been deleted, or it has been moved.
To resolve 404 errors, you first need to identify the broken links, understand their cause (such as a typo or a deleted page), and then either correct the incorrect link or set up a redirect to a relevant, active page.
For website owners, frequent 404 errors can discourage visitors, resulting in a poor user experience. Additionally, these issues can negatively impact your site’s search engine optimization (SEO) by affecting crawling and indexing.
What causes the 404 error?

Here are the leading causes of a 404 error:
- Mistyped URL. Simple spelling mistakes in the URL prevent the server from finding the intended page.
- Moved or deleted page. When a website owner deletes or moves a page without setting up a proper redirect, visitors will encounter a 404 error.
- DNS issues. If the domain name isn’t correctly pointed to the server, the system will fail to locate the requested resource.
- Broken or dead links. Whether internal or external, linked content that points to a non-existent page can trigger a 404 error.
- File permissions. Incorrect file permissions can block access to specific web pages, resulting in an error.
- Corrupted .htaccess file. A misconfigured or corrupted .htaccess file can also cause 404 errors.
How to fix Error 404 not found
To resolve Error 404, start with basic troubleshooting steps, such as clearing your cache and checking the URL for typos. If you are the site owner, you may need to verify your domain’s DNS settings, adjust file permissions, or restore backup files.
1. Perform basic troubleshooting
Sometimes, a quick fix is all it takes to resolve Error 404. For visitors, we suggest trying these simple troubleshooting steps to identify whether the issue lies with your browser or device:
- Restart your browser: Close and reopen the browser to reload the page, as this can refresh the connection and resolve the problem.
- Clear cache and cookies: Clear your browser cache, cookies, and history to ensure outdated or corrupted data isn’t causing the error page to appear.
- Check for typos: Double-check the URL for spelling mistakes or missing characters that could prevent the server from locating the specific page.
- Use another device: Access the website from a different device – maybe the 404 page not found error affects only one device or session.
- Switch to incognito: Use an incognito or private browsing window, which doesn’t store cache or cookies, to see if a fresh session resolves the issue.
If the issue persists, inform the website owner or the person responsible for the site you’re trying to visit. Look for contact information on the site’s Contact Us page or footer area and let them know about the issue.
If you have a WordPress site with Hostinger, you can use our AI Troubleshooter in hPanel to automatically detect and help fix 404 errors.
2. Check domain DNS settings
When your domain isn’t correctly pointed to the hosting server, it can result in a 404 response code. DNS settings control how your domain connects to the server, and even a minor misconfiguration can make the requested domain name inaccessible.
To resolve this issue, verify that the DNS configurations are correct. If your domain and hosting are with Hostinger, the domain will automatically point to the correct hosting server.
However, if you have a hosting plan from Hostinger but your domain is from another provider, you need to make sure your DNS settings are correct.
You can find your required nameservers and IP address in hPanel and then update them at your domain provider. For detailed steps, see where to find Hostinger nameservers.
After updating, remember to wait for DNS propagation, which can take up to 24 hours.

3. Fix file permissions
File and folder permissions control who can access, edit, or run the data on your hosting account. When these settings are incorrect, the server may block access to certain pages, resulting in an error 404.
For Hostinger customers, you can easily reset your permissions to the default settings using our Fix File Ownership tool in hPanel. For detailed instructions, follow these steps on how to fix file permissions.
Important! Hostinger’s default permissions are set to 644 for files, meaning the owner can read and write, while others can only read. For folders, it’s 755, which allows the owner to read, write, and execute and others to only read and execute.
4. Disable and recreate the .htaccess file
A corrupted or misconfigured .htaccess file can cause a 404 error. This file manages URL redirections and access control, so when it breaks, it can lead to “page not found” issues.
To fix this, you can try disabling your current file. Navigate to your public_html directory via your hosting’s file manager and rename the existing file to something like .htaccess_old.
Once that’s done, you’ll need to create a new one and add the default code. You can find the correct steps and code snippets in our guide on how to locate and create a new .htaccess file.
5. Restore backup files
If some of your website pages were accidentally deleted or corrupted, restoring a backup can help recover the lost content and resolve 404 errors. This is especially helpful when external links redirect visitors to missing pages.
Hostinger users can manage this process directly from the Backups section in hPanel, where you can follow the steps to download and restore your website backup.
How to check for 404 errors on your website
It’s essential to regularly check for 404 errors to ensure your website runs smoothly and avoid frustrating visitors. Below are several methods to help identify and address these issues appropriately.
Google Search Console
Google Search Console offers valuable features to help you monitor and maintain the health of your website. You can go to Indexing → Pages and select Not found (404) under the Why pages aren’t indexed section to see a list of pages that trigger 404 errors.

Alternatively, enter the URL you want to check into the search bar at the top. The tool will show whether the URL is indexed or returns a 404 error. After resolving the issue on your website, you can request that Google reindex the page.
Link checker tools
Tools like Screaming Frog and Ahrefs’ Broken Link Checker are excellent for finding 404 errors. These tools scan your domain to detect errors or broken links, allowing you to correct them before they impact user experience or search engine performance.

Manual checks
While automated tools are helpful, manual checks provide a more hands-on approach. Regularly review your website’s internal links to ensure they direct users to the correct pages.
Additionally, consider user-reported errors, as visitors may uncover 404 errors that automated scans missed or find pages that these tools haven’t scanned.
Why fixing 404 errors is crucial for SEO
Addressing 404 errors is necessary to maintain your website’s SEO performance. When users and search engine bots frequently encounter “not found” pages, it signals a poor user experience and can harm your site’s reputation and rankings.
Here’s why fixing these errors matters:
- User experience: 404 errors create a frustrating experience for your visitors. If someone clicks a link expecting information and hits a dead end, they will likely leave your site immediately. This high bounce rate indicates to search engines that your website is not helpful or well-maintained, which can negatively impact your rankings over time.
- Crawling and indexing: Search engines, such as Google, use bots to “crawl” your site and discover content to include in their search results. If these bots constantly encounter 404 errors, they waste their limited crawl budget on pages that don’t exist, instead of discovering your important, new content. This can slow down how quickly your good pages get indexed and shown in search results.
- Link equity: Backlinks, which are links from other websites to yours, are a vital SEO ranking factor because they pass authority, or link equity. If another website links to a page on your site that now shows a 404 error, all of that authority is lost. By fixing the broken link, usually with a redirect, you reclaim that value and help maintain your site’s ranking potential.
How can I prevent website errors in the future?
Fixing 404 errors is a vital first step in maintaining your website’s overall health. It keeps your visitors from getting frustrated and ensures search engines can crawl your site correctly.
But broken links are often just one piece of the puzzle. They are a key part of a much larger and necessary process: a full site audit.
A comprehensive audit is a regular check-up that helps you identify and resolve hidden issues related to SEO, security, and performance before they impact your traffic. To see what else you should be looking for, read about how to perform a site audit.
Comments
May 19 2019
Bless you for this article. It solved my 404 issues. It was, as you said, a permalink problem. Seriously, I'm so grateful.
July 06 2019
thanks alot I found the solution only here
September 12 2019
this really helped, thanks so much
September 25 2019
Hi, I created a site in Google Cloud Platform and struggled with this particular issue of "404 page server error" as none of the standard pages such as home, blogs and contacts showed up. Frustrated, I was trying out various forums for support. But I tasted success here, by changing the Permalinks settings to plain as suggested in this post. Now, all the pages are displaying! Awesome!!!! I used to always chose "post name" under settings/permalinks/ as the default one. (I am more familiar with the WordPress.org option) My question is, is it because of the difference between WordPress.com and WordPress.org this issue comes up? However, I am elated by this solution and thank you for clearing me from this quagmire . With regards Sundar
August 23 2020
If you get 404 after trying to Add/Edit a post in wordpress dashboard, you can try disabling ModSecurity in cpanel.
September 24 2020
Just customized my 404 page per all of the advice I gathered here.Super helpful!
November 18 2020
Glad to help.
June 09 2021
I renamed all the plugins in the /plugin folder and I renamed my current twentytwendy theme in the /theme folder. I get get the 404 error when I click on ANY link on my WP Dashboard. Please help
September 14 2021
Hi, David! If the 404 is persisting on particular pages (not the main page), it's best to have a look at your website's error_log - that should help you find the root cause! Additionally, if the issue only persists on your WP Dashboard, you might want to replace the core files (reinstall WordPress). Good luck!
January 31 2022
You're a lifesaver! Resetting the permalinks of my WP-Site restored all the links :)
February 04 2022
Happy to hear it worked out!
March 07 2022
How can I reset the permalinks if I don't have access to my wp admin page? It also gives me a 404 error when trying to login.
March 09 2022
Hi there! If you're getting 404 on all pages, I would suggest to make sure you don't have any other problems on your website - that the file structure looks similar to a default WordPress and double-check if you're not missing any files/folders (you can download a default WordPress core here). If you were changing your website name and started receiving 404s after that, you can try and replace old domain with the new domain in your database doing search and replace. Let me know how it goes for you and good luck!
April 29 2022
Thanks, I found the solution here :)
May 11 2022
Thank you! I had this 404 error on a download plugin and solve it changing the permanet links options!
May 12 2022
Happy it worked out!
May 14 2022
Well Thanks for this, it was permalink issue, fixed by switching between different permalink, and back to post-name.
May 18 2022
Happy to hear it worked out!
May 25 2022
Wow! What a quick fix to reset permalinks. Thank you! It worked!
May 31 2022
Happy to hear it worked out!
July 27 2023
I have deleted the "public HTML" file from the file manager, and now it is showing a 404 error. Please tell me how to fix it.
July 28 2023
Hey there! The reason you're getting the 404 not found error, is because you've deleted the public_hmtl folder, where your site files were located. However, there's no need to worry, as to get your site running again, all you have to do is restore it from a backup.
October 11 2023
I am trying to help resolve an issue for a client with an old (2015) Facebook post that directs to a website page but unfortunately cannot be found (404 error), and I also noticed the link is http and not https. I have access to the WP admin, but I find it difficult to walk around this challenge. Can the old link (http) be redirected by any means?
October 31 2023
Hello there! Yes, you can redirect the old http link to the new https link using a redirect plugin. It's easy and quick to do, and it will help to ensure that visitors are always taken to the correct page ?
October 15 2023
Please help me 404 no found
October 30 2023
Hi there! Have you tried the methods we mentioned in this article? If you're still having trouble after trying these methods, please don't hesitate to contact our Customer Success team for further assistance ?
September 11 2024
I developed(coded) website by myself and soon I am hosted in hostinger but it open only Homepage , And other Pages keep showing ( Oops 404 Server Error ) I have googled everything , Now Please someone help me . !!!
September 20 2024
Hello Deepak! It looks like your hosting has expired, which may be causing the 404 error. Please ensure that your hosting is active, as your website requires it to function properly :)