WordPress 404 page not found
Sometimes when a user visits a particular post this error is shown. The main cause of this error is the complication of permalink settings. The user needs to setup all the settings again to solve this problem.
How To Troubleshoot and Fix WordPress 404 Errors?
When you see a 404 error on your WordPress site it means that a page could not be found for the requested URL. This means that either the URL is wrong or that something is not working right inside your WordPress installation. Below we have listed many of the ways to go about troubleshooting and fixing these WordPress 404 errors.
.HTACCESS
More than likely .htaccess is the culprit for these errors and the easiest way to try to fix this is by changing the permalink settings in order to try to let WordPress automatically rebuild the .htaccess file. So how do you change your permalink settings?
Simply go to Settings -> Permalinks inside your admin area and save your settings, sometimes switching to a different URL structure temporarily and saving is a good idea. This should have solved any 404 errors you may have had on your site.
If that did not solve the issue you will need to log in via FTP, you can use a client like FileZilla to do this. Enter the host and login details for your website and navigate to your WordPress root directory. You should see a .htaccess file here and if you do not you will need to create the file. Now, open your .htaccess file via a text editor like Notepad++. Your .htaccess file should have the following content, if it does not you may need to replace everything in it with the content below.
# BEGIN WordPress <IfModule mod_rewrite.so> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Once you have updated your .htaccess file you can go to your site, refresh the page and see if you are still getting 404 errors. If you are still getting 404 errors continue on to the next section.
Mod_Rewrite and server settings
If you are still having issues at this point the error most likely lies in your server settings. This means that your web host may not be configured to run WordPress properly or they may be having technical issues. Contact your web host and make sure they have mod_rewrite enabled. You should also ask your web host for help to see if they can help you fix the 404 errors on your site.
Debugging
There is a plugin called Debug This which will allow you to debug rewrite errors. Simply add it to your WordPress installation and access the plugin via the admin bar on the page on which you are seeing the 404 error.
Read more here: WordPress 404 Not Found | What Is It & How To Solve It