No doubt on that WordPress is one of the most widely used and popular blogging platforms over the internet and nowadays even companies have started using WordPress for their main website, reason is dead simple, it is simple to use but yet it is a powerful CMS platform, even a newbie with almost no knowledge about coding can start blog in just 10 minutes and start posting on his/her blog.
It allows you to customize and tweak it as you want and sometimes a slight tweak can break your website but again what makes WordPress awesome is finding a solution is easy, you can head over WordPress support platform get your problem solved.
Today we are covering a problem which we have faced on one of our blogs, we were tweaking some setting and suddenly when we check our website and try to open any post it shows 404 error page, but posts were there as we can see them in the admin page.
If you are also facing same so first of all don’t panic as all of your posts as safe and you will get them back. The most common reason for this issue is your .htaccess file might get deleted or something happened with that file and causes rewrite rules issue.
A simple solution for this problem is to save your permalink structure again, all you need to do is head over to Setting->Permalink and save it as it is, nothing needs to change over here, just press Save button and you are good to go, just check your blog again and your posts must be showing up now, It updates permalinks settings of your website and flushes the rewrite rules.
If above doesn’t solve your issue then, use FTP client and navigate to your directory and set permission for the .htaccess file as 666 and then repeat the above method and you will be done.
P.S. Don’t forget to change the permission for .htaccess file back to 660 once you are done.