How to Fix WordPress 404 Error

Considering how much WordPress popularity WordPress owns, it’s hard to believe that it can face frequent errors. This is true. Quite frequently, WordPress users keep facing technical errors, of which WordPress 404 error is very common. The good news is that you can easily resolve these issues by following some simple methods. In this post, we are sharing two easy ways using which you can fix the WordPress posts returning 404 error.

What is WordPress 404 Error?

Sometimes, users are unable to access a specific post on which they receive “404 Not Found” error, though they can access their website’s main page and WP admin portal. This happens when rewrite rules go wrong or you website’s .htaccess file gets deleted.

You simply need to tweak your permalinks settings in that case. If that doesn’t solve the issue, then you can try some other methods too.

How to Reset your WP Website Permalinks

WordPress 404 error arises mostly due to the wrong way of permalink creation. You can reset the permalinks through an FTP or a dashboard. If you use your dashboard, do this:

  • Go to Settings > Permalinks
  • Notice the structure that your website is using (you will change it temporarily but restore it again in some time)
  • Head to Common Settings > Plain
  • Click Save
  • When the page reloads, select your website’s previous permalinks structure

This method resolves WordPress 404 error. If the issue persists, check the second method.

How to Restore your WP Website’s .htaccess File

Your website’s permalinks structure is saved in the .htaccess file. This is the file that determines your WordPress wesbite’s behavior with its server. It also creates URLs for your website.

Use FTP to manually reset your .htaccess file. Go to a folder called Root folder under a folder called public_html or www after your website’s name.

When the root folder opens, click .htaccess file. When you open this with your computer’s text editor, you will be able to edit the content. Simply, use this code in the editor:

  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteRule ^index\.php$ – [L]
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule . /index.php [L]
  9. </IfModule>
  10. # END WordPress

Make a backup of your old .htaccess file and replace the existing one with the code we provided above. Save the changes.

Now, go to your webpage and see if the WordPress 404 error still appears. If it is gone, you’re good to use your website again.


You can fix WordPress 404 error by deactivating its plugins and themes. Dashboard gives fastest and easiest way to access your plugins and themes. Once all this is deactivated, re-activate each one by one to see which one is causing the problem. Once this sequence is done in clean way, you can get assured that it’s not your plugins and themes that are causing the issue. You can try resetting the permalinks of your WP’s website.

Your Comment:

Related Posts

change menu color in wordpress


How To

How to Change the Menu Color in WordPress?

You have spent so much time searching for the most appropriate website theme as per your business. You have finally found the right one: the best layout, font, and everything else. But you are facing an issue which is how to change the menu color. Changing header color in WordPress is also easy. Do not worry, WordPress […]

Change WordPress Theme


How To

How to Change WordPress Theme without Losing Content?

Do you want to change WordPress theme without losing content? If yes, this guide will help you. WordPress is a CRM that can be quickly modified. Your website may have been outgrown to an existing theme and would obviously look amazing with the added features. Altogether, a WordPress theme will accomplish everything.   All in all, you[…]

Change WordPress Background Color


How To

How to Change WordPress Background Color of a Single Page?

The first thing any website visitor notices is the background color and font of a website. Agree? The background color gives a powerful impression of your business. Well, it’s one of the essentials of quality design. The color and the website visuals reflect your brand, style, readability, and even professionalism. This is the reason why deciding the[…]