How to Fix WordPress Posts Returning 404 Error

How to Fix WordPress Posts Returning 404 Error

How to Fix WordPress Posts Returning 404 Error

WordPress is a strong CMS. Generally a slight tweak could make your web site inaccessible. However, finding  solution for any WordPress problem is extremely simple (take a look at how to properly ask for WordPress support and get it). Previously we’ve covered a few of the most common issues WordPress users face. Just like the internal server error or error establishing database connection. Another frequent problem that almost all WordPress users face sooner or later is WordPress posts returning a 404 Error. On this article we’ll present you repair WordPress posts returning 404 error.

How to Fix WordPress Posts Returning 404 Error

Normally on this situation a user can access their WordPress admin space, their blog’s primary web page, however when accessing a single posts they get a 404 Not found error. Initially, don’t panic most of the time your posts are still there and fully secure. This normally occurs in case your .htaccess file got deleted or something went incorrect with the rewrite guidelines. What you have to do is fix your permalinks settings.

Go to Settings » Permalinks, and easily click on on Save Modifications button.

It will replace your permalinks settings and flush rewrite guidelines. Generally this solution fixes the WordPress posts 404 error. However, if it doesn’t give you the results you want, then you most likely have to replace your .htaccess file manually.

Login to your server using FTP, and modify the .htaccess file which is located in the identical location where folders like /wp-content/ and /wp-includes/ are located. The simplest factor you are able to do is to quickly make the file writeable by changing the permissions to 666. Then repeat the original resolution. Don’t forget to change the permissions again to 660. You can even manually add this code in your .htaccess file:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
______________________________________________________________________________________________

Fix for Local Servers

Typically designers and developers install WordPress on their computer systems utilizing a local server for testing functions. If you wish to use fairly permalinks, then you must allow the rewrite_module within the Apache configuration of your MAMP, WAMP, or XXAMP.

We’ve got written a tutorial right here on how to enable custom permalinks in WordPress local environment.

We hope this article helped you resolve posts returning 404 error in WordPress. Did this solution give you the results you want? Do you’ve another answer that worked for you? Please share it in the feedback below. We wish to make this article a complete useful resource for users who run into this problem.

Leave a Reply

Your email address will not be published. Required fields are marked *