1. Home »
  2. Tech

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

Share on Social Media

Related Posts

Search Engine Optimization basics
Search Engine Optimization basics
How to buy and own a website
How to buy and own a website
Convert all HTTP links to HTTPS using JavaScript
Convert all HTTP links to HTTPS using JavaScript
Guide To Useful SSH Commands
Guide To Useful SSH Commands
Arabs Write Arabic Using English Letters And Numbers Franco-Arabic
Arabs Write Arabic Using English Letters And Numbers Franco-Arabic
Guide how to verify your Facebook page with a blue tick
Guide how to verify your Facebook page with a blue tick

Comments

Leave a Reply

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