Fix WordPress 404 Error In All Pages And Posts

Wordpress Website

WordPress is the number one used CMS for most websites and blogs on the internet. You may face a problem that your website gives a 404 not found server response error for all your pages, posts and even the category pages.

Cause of the wordpress 404 error problem

This is a serious problem that will make your WordPress powered website useless. The major cause of this problem is a corrupted wordpress .htaccess file that prevent mod rewrite and permalinks from functioning properly.

Fixing wordpress 404 error in all pages and posts problem

To fix this error login at your site’s wp-admin page and go to settings then permalinks.

Fixing WordPress permalinks settings and htaccess file

Just press save without changing anything. This should fix wordpress .htaccess file. Check any page or post in your website to make sure the error is fixed. If this didn’t fix your problem try to upload the default .htaccess file below to your root wordpress directory using ftp.

Default WordPress .htaccess file content

# 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]
# END WordPress

Leave a Reply

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