How to fix WordPress 404 Error

When i was creating a custom post type in wordpress, It was showing “404 error – Page not found”.So when i fixed wordpress 404 problem,then i realized that it might help you also.So in this post i will tell you that how to fix WordPress 404 error – Page not Found.

To fix this problem follow these simple steps.

Step 1:Login to your WordPress Admin area.
Step 2: Go to Settings>>Permalinks
Step 3:Simple click on the Save Settings Button.
Click on the Save Changes Button
This will update your permalinks settings and flush rewrite rules.In most cases this solution fixes the WordPress posts 404 error.I had also fixed my problem in this way.

Update your .htaccess file

However if it doesn’t help you, then you might need to update your wordpress .htaccess file manually.
Step 1: Login to your FTP server and access your wordpress files.
Step 2: Open your .htaccess file to update it.
Access your htaccess file
Step 3:Update your .htaccess file with the following code

# 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

Often designers and developers install WordPress on their computers using a local server for testing purposes. If you want to use pretty permalinks, then you need to enable the rewrite_module in the Apache configuration of your MAMP, WAMP, or XXAMP.

We hope that this article helped you to fix your problem.Did this solution worked for you?Do you have any other solution worked for you?
Please share it with us in the comment below.We would like to make this article a comprehensive resource for users who face this issue.

Shubham Kumar

Hey, I am Shubham and i love Blogging, Coding and exploring new things and obviously sharing my experience with you.

You may also like...

1 Response

  1. Sumit says:

    Its really helped me to fix my problem.
    Thanks

Leave a Reply

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