
WordPress Posts Returning 404 Error
- August 21, 2015
- Leave a comment
WordPress is a robust CMS in which sometimes a slight modification can make your site inaccessible. A common error that users face is that their WordPress posts are returning a 404 error message.
In this situation, users are able to access their WordPress admin and their blog’s main page. But when they try to access a single post, they get this 404 error. This happens because either your .htaccess file is deleted or something is wrong with the rewrite rules.
Fix:
To fix this issue, you just simply have to go to your Settings » Permalinks and click on Save Changes button. This will update your permalinks settings and you will get rid of the rewrite rules. If this does not work, then you need to update your .htaccess file manually. For this, you need to log in to your Server using FTP. Find your .htaccess file from its located folder and temporarily make the file writeable by changing the permissions to 666. Add the following code manually in your .htaccess file:
1 2 3 4 5 6 7 8 9 10 |
# 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 |
Once code is added, change the permissions back to 660. Your issue should be resolved now.
User Comments