Saifudheen is a young Entrepreneur from Kerala, India who founded MakTal™. This blog aims at helping individuals and businesses with the knowledge he gained throughout his career. Like his facebook page to stay updated.

How to Fix WordPress Page Not Found 404 Error

wordpress 404 error page

WordPress 404 Page Not Found Error may occur due to several reasons. May be you have migrated your host, edited files or some malicious codes were inserted by hackers!  In this post, I will tell you how to fix 404 Error pages on wordpress.

Note:
Before following any steps in this article, you have to take a backup of files and keep it safe.

check htaccess

Check htaccess file in your root folder and replace it with default wordpress htaccess file. If you do not find htaccess file in your root folder, you need to upload a fresh one. Some hosts skip htaccess files when you take backups. This fix worked for most of the users.

A default htaccess code should look like this:

# 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

Update permalinks

In your dashboard, go to Settings -> Permalinks. Now just click on Update button. It will update your permalinks again and flush rewrite rules. This fix may work for you.

WordPress posts showing 404 error?
In some cases, home page will look fine but post links may show you 404 error! Following method can be used for fixing 404 error on post links.

Permalink updation trick

Go to edit a post in admin panel. Just below the title, you can see Permalink customization field for that post. Click on Edit and then click OK. Now Publish post again. You are done!
update permalinks

If you have more tips to fix WordPress 404 Error, please share them via comments. Or if you are still facing issue, contact me now!

Saifudheen is a young entrepreneur from the great India who founded MakTal™. He is a passionate designer, color lover, coder and knowledge giver ;)