wordpress-404-error

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.

Bonus

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

Fix-Error-Too-Many-Redirects-in-WordPress

02

Jul
How To

How to Fix Error Too Many Redirects Issue in WordPress

Too many redirects issue on WordPress? No worries! This happens due to an incorrect settings or faulty plugin. When this issue arises, the user is unable to enter their website’s dashboard. Go through this complete post and save yourself from the hassle of not being able to access your website due to the ‘too many redirects’ error. […]

fix-add-media-button-not-working-wordpress

01

Jul
How To

How to Fix Add Media Button Not Working in WordPress

WordPress is becoming advanced day by day but there are some technical failures that keep occurring every now and then. Among those common issues is the add media button not working issue. The worst part that users feel so much frustrated about is that there is no warning or notification why the button isn’t functioning. No matter[…]

Fix-Wordpress-Login-Page-Refreshing-Redirecting-Issue

30

Jun
How To

How To Fix WordPress Login Page Refreshing/Redirecting Issue

The issue of WordPress login page refreshing/redirecting is very common. When this happens, users get locked out of their website’s admin dashboard and cannot access anything inside it. Although this WordPress issue can occur at anytime due to some specific reasons, there are some easy solutions to resolve it. In this post, we help you discover how[…]