How to fix WordPress pages / posts 404 error ?

If by some reason you are not able to access your wordpress based websites pages / posts and you are getting an error like, “Not Found” “The requested URL /page_or_post_name/ was not found on this server.” “Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.” even if you can see a home page and are able to access dashboard, then there could be some issues with your websites .htaccess file which resides at the home folder of your website code.

To fix this, you can follow below two ways,

Login to your websites wordpress dashboard as, , after entering your admin details, you might be redirected to your dashboard as Or if it didn’t automatically redirected then you can type this URL and press enter Now, from dashboard settings, go to Settings -> Permalink and select url link types as you want and click “Save Changes”. Once thats saved, this will automatically create .htaccess file in your website home folder in hosting and you should be able to view the pages / posts which were showing 404 error.

Related :   How to use custom meta description for every page in Open Classifieds / Osclass, the free classifieds script

OR if above method didn’t worked, you can manually create and update .htaccess at your websites source code in top directory as,

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

and save this .htaccess file and now try to access post/pages, and it should be working now.


Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )


Leave a Comment

Android Android Applications Android Build system Android Commands Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded