Home Tutorials How to Fix WordPress Posts Returning 404 Error

How to Fix WordPress Posts Returning 404 Error

Regardless of being the most well-liked content material administration system on the planet, you’ll often run into errors when utilizing WordPress — one such difficulty is WordPress posts returning a 404 error.

Fortuitously, fixing 404 errors in WordPress might be easy.

Generally, they’re attributable to issues together with your .htaccess file. This implies when you re-configure or restore this file, the issue is solved.

On this tutorial, we’ll take a look at how to repair WordPress posts returning 404 error. Let’s get to it!

What Is a 404 Error in WordPress

404 errors aren’t distinctive to WordPress; they will occur with any sort of web site. These errors pop up when a web page can’t be discovered. In lots of circumstances, browsers can’t discover and entry these pages just because they don’t exist.

In case your browser returns a 404 error as a result of a web page doesn’t exist, it’s normally a minor annoyance. Nevertheless, in some circumstances, you could run into 404 errors for pages you know are there.

In these conditions, the most typical causes are as follows:

As such, if customers are operating into 404 errors in your web site that aren’t attributable to incorrect URLs, you’ll need to troubleshoot the difficulty as shortly as doable.

How to Fix WordPress Posts Returning 404 Error (Three Methods)

You’ll want an FTP (file switch protocol) shopper comparable to FileZilla or Cyberduck to join to your server. For those who need assistance with organising an FTP connection, right here’s an awesome tutorial by WordPress Help on how to use FileZilla with WordPress.

To edit your WordPress information, you’ll want a textual content editor, comparable to Notepad, TextEdit, Atom, or Visible Studio Code, too.

We additionally suggest that you simply create a backup of your web site earlier than beginning to troubleshoot.

For the primary technique, we’ll take a look at one thing that takes about 30 seconds.

1. Reconfigure Your WordPress Permalinks

WordPress gives you with a number of selections of permalink buildings. ‘Permalink’ stands for everlasting hyperlink. It’s the URL your web site guests use to entry your pages and posts.

In some circumstances, WordPress would possibly run into errors when producing permalinks, main to 404 errors. To resolve this downside, you’ll want to quickly reset your web site’s permalink construction. This can solely apply in case you’re utilizing some other permalink construction than the default Plain.

To reset your permalink construction, entry your WordPress admin space and go to the Settings > Permalinks web page. Memorize or notice down your present settings right here, then choose the Plain choice below Frequent Settings:

Configuring permalink settings in WordPress.

When you save your adjustments, the web page will reload. At this level, merely re-select your previous permalink construction and save your adjustments once more.

Though the permalink construction has solely been reset as soon as, this could typically be sufficient to make the 404 error go away. If it doesn’t, you’ll want to dig deeper into WordPress.

2. Restore Your Default .htaccess File

Your .htaccess file consists of directions for the way WordPress ought to work together together with your server. Amongst these directions, there are guidelines for the way to generate your web site’s permalinks.

If resetting your web site’s permalink construction from the dashboard didn’t work, the following step is to restore the .htaccess file to its unique state.

In lots of circumstances, your WordPress plugins or internet hosting supplier make adjustments to your .htaccess file — a few of which could trigger errors in your web site. Returning it to its default state provides you a clear slate to work from.

To find your .htaccess file, join to your web site by way of your FTP shopper and open your root folder (normally referred to as public_html). The .htaccess file ought to be right here. Proper-click on it and choose the View/Edit choice:

Editing your htacess file via FTP.

This can open the file utilizing your default textual content editor. Delete the file’s contents and change it with the next code:

# 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

That is basically the contents of a default .htaccess WordPress file. When you paste this code into your web site’s .htaccess file, save your adjustments and shut it.

Your FTP shopper ought to ask you if you need to replace the file in your server — you do need to! Lastly, strive accessing your web site once more to see if the 404 error persists.

If the error is gone, you possibly can return to the Settings > Permalinks web page in your WordPress dashboard to change your permalink construction again to its earlier format. At this level, issues ought to be proper once more. If not, you’ll want to transfer onto the following technique.

3. Disable All Your Themes and Plugins

In some circumstances, compatibility points between plugins, themes, and WordPress itself could cause 404 errors in your web site.

So, in case you’ve tried each of the earlier strategies with out success, the following step is to deactivate all of your plugins and themes to see if you’re having a compatibility downside.

To disable your plugins and themes from the dashboard, merely head to the related display screen throughout the WordPress admin space (Plugins > Put in Plugins or Look > Themes), choose the plugins or themes you need to disable, then select the Deactivate choice below the Bulk actions drop-down menu, and click on the Apply button:

Disabling plugins through the WordPress dashboard.

That is the quickest method to disable all of the plugins in your web site. Doing so will in all probability affect your web site’s performance, nevertheless it’s obligatory to rule out every plugin as the reason for the 404 error. For those who don’t need to carry out this motion in your stay web site, we suggest that you simply create a staging web site.

If the error persists after disabling each plugin, you’ll additionally want to disable your lively themes. 

And, if the error nonetheless doesn’t disappear, reactivate all of the plugins and themes and do the next:

  1. Deactivate the plugins one after the other.
  2. After disabling a plugin, check if the WordPress 404 error persists.
  3. If the error persists, re-activate the plugin and repeat the method with the following one.

This could allow you to isolate which plugin is inflicting compatibility points in your web site. 

If the 404 error prevents you from accessing your dashboard, it’s also possible to disable plugins and themes in your web site by way of FTP. To take action, join to your web site via your FTP shopper, navigate to your root folder, and entry the wp-content listing. Right here, you’ll see a number of folders, together with two referred to as plugins and themes:

Accesing your WordPress plugin and theme folders via FTP.

Every of these directories consists of subfolders for all of the plugins and themes put in in your web site.

To disable plugins en masse, you possibly can right-click the plugins folder and rename it to anything, e.g. plugins.previous. Then, create a brand new plugins folder, which ought to be empty:

Renaming your plugins directory via FTP.

Now strive to entry your web site once more to examine if the 404 error nonetheless pops up. If it’s gone, then you possibly can delete the empty plugins folder and return that title to the unique one. 

Your subsequent transfer is to rule out particular person plugins. To take action, open the plugins listing and observe these directions:

  1. Rename a plugin’s folder.
  2. Test if the 404 error persists in your web site.
  3. Return the folder to its unique title and repeat the method with the following plugin.

If the error disappears at any level, you possibly can assume that plugin is the wrongdoer. At this level, you’ll need to both contact the developer for a repair, search for an appropriate various, or uninstall the plugin.

This course of works a lot the identical with themes. For those who rename your lively theme’s folder, WordPress will robotically use the default theme as an alternative. After renaming the folder, check your web site and if the error is gone, your former theme was most probably the basis trigger.


WordPress posts returning 404 error is a hard difficulty. If guests can’t discover what they’re searching for in your web site, they could surrender and look elsewhere. This implies leaving 404 errors unchecked could have a major affect in your bounce and conversion charges.

For those who’re operating into 404 errors in your WordPress web site that aren’t attributable to mistaken URLs or caching points, right here’s how to repair them:

  1. Reconfigure your WordPress permalinks.
  2. Restore your .htaccess file.
  3. Disable all of your themes and plugins.

Do you will have any extra questions on how to clear up WordPress 404 errors? Tell us within the feedback part under!


Buckle Up!
5 Steps To Pace Up
Your WordPress Web site

Make your web site run 30-40%
sooner with a number of easy methods

Be part of Free Course