We use cookies to ensure you can get the best experience on our site. If you keep using this site we assume that you agree to our use of cookies. Privacy Policy OK

WordPress 404 Not Found

by | April 13, 2021

WordPress is a commonly used CMS and can be installed both on our Free and Premium hosting plans. The “404 Page not Found” is also a common error every website owner would run across. Luckily, fixing the error is a simple task and could be done by everyone. In this article, we will walk you through the process to fix the 404 error for WordPress.

What is the WordPress 404 Error?

The 404 error is one of the many HTTP status codes which you might run into on the internet. The error page would appear when you try to access a page and your browser can’t find it. The 404 error message could be different depending on the browser which you are using. For example, Firefox would return a “404 Not Found” error while Chrome would return “404. That’s an error.”.

wordpress-404-error
 

There are different things that could cause a 404 error in WordPress such as:

  • Incorrectly entered URL
  • Deleted post or page
  • Caching problem
  • DNS issue
  • WordPress compatibility issue

How to Fix the 404 Error?

As long as the “404 Not Found” error is not caused by an incorrectly entered URL or cache, there are few things which you can do to fix the error.

Reset WordPress Permalinks

WordPress permalinks are used to structure the URL of your website. WordPress provides you with several options from which you can choose from the WordPress admin panel:

You can reset the Permalinks via the WordPress dashboard or via FTP. If you have access to the WordPress dashboard simply navigate to the Settings > Permalinks page. From there change the Permalinks to Plain, which will be a temporary change and save the changes. Once you have done that you can go back and change the Permalinks to the option which you were using. 

wordpress-permalinks
 

If you do not have access to the WordPress dashboard, start by connecting to your website directory via FTP or access the File Manager. Once you have accessed your website files you will have to find the .htaccess file and edit it. Very often the .htaccess file will look as shown on the screenshot below:

htaccess-filemanager
 

To fix the .htaccess file you need to add the following default code for the .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Once you have added the code make sure to save the changes.

wordpress-htaccess
 

You can now reload your page and check if your WordPress is returning the “404 Not Found” error. If you see the page successfully – congratulations, you have fixed the error all by yourself. 

How to Check if the “404 Not Found” error is Caused by a Plugin or Theme

Sometimes the plugins and themes which you use might also affect the structure of your WordPress URL. If the above methods do not resolve the 404 error, disabling your plugins and themes is the next step you can take.

There are two ways to disable your plugins depending on whether you can access your WordPress dashboard or not. We have covered this process in our article “How to uninstall a plugin in WordPress“.

The purpose of this process is to find which plugin is causing the error by disabling them one by one. You can also revert the process and disable all plugins and enable them one by one, in case multiple plugins are causing the error. Once you have identified the plugin causing the error there are a couple of this you can do:

  • You can contact the developers of the plugin so they can assist you with resolving the issue
  • You can remove the plugin and look for an alternative one

If you have gone through all plugins and none of them is causing the error, you will also have to check your current theme. Unlike the plugins, this process is done much faster since you have to check only one theme. All you need to do is change your WordPress theme to a different one. You can refer to our article “How to Change a Theme in WordPress” for more information. Now check if the 404 error still persists. If the error is fixed you will once again have to choose from contacting the developers of the theme for fixing the issue or replacing the theme.

Related Posts

How to Add YouTube Subscribe Button in WordPress

Last week we’ve covered how to embed a Facebook video in WordPress. But even if Facebook’s video platform is on the rise, it’s not smart to...

How to Find Broken Links in WordPress

The internet, as well as your WordPress website,  is built on the basis of links. Your SEO results are dependent not only on the number of links that...

How to Change WordPress Password

Security is a major concern on the web. So, we highly recommend choosing a password that will be difficult to guess. Of course is equally recommended...

awardspace logo
Where Ideas Turn Into Websites