How To Fix The WordPress Posts Returning 404 Not Found Error

Are you getting a 404 Not Found error message when clicking to an existing page on your site? Learn how to fix the WordPress 404 Not Found error …

How To Fix The WordPress Posts Returning 404 Not Found ErrorThis tutorial is part of our FREE WordPress Management training and WordPress Troubleshooting tutorial series.

In this series of step-by-step tutorials, we show you how to troubleshoot and fix common WordPress errors.

Important Info

Important: Always do a backup of your WordPress site (files and database) before modifying any files or performing any upgrades or installations! 

If you don’t want to back up your site manually, then get professional assistance, or use WordPress backup plugins.

How To Fix The WordPress Posts Returning 404 Not Found Error

WordPress 404 Error

(WordPress 404 Error)

Normally, when someone types in the address of a page on your website into their web browser that does not exist, WordPress displays a “Not Found” page (known as a 404 error page)  …

WordPress 404 Error Page

(WordPress 404 Error Page)

A 404 Page not Found is a common WordPress error. It can occur if:

  • Your site’s permalinks have not been configured properly,
  • Your site has moved and the permalinks have not updated correctly,
  • The URL of a web page has been edited and the page permalinks have not been updated or a 301 permanent redirect was not implemented to redirect visitors from the original URL to the new page address.
  • The .htaccess file has been deleted or is missing from your server
  • The .htaccess file has become corrupted.

To learn more about WordPress 404 error pages, go here:

Fix Permalinks Issue

If someone types in or clicks on a link for a URL of a web page that DOES exist on your site but they get a 404 Not Found error page, there may be a problem with your permalinks.

If the 404 error is being caused by incorrect permalink settings, see the tutorial below to learn how to fix the problem:

Fix Link Redirection Issues

If the 404 error is caused by a web page URL not being updated after being edited or moved to a different location, see the tutorials below to learn how to fix the issue:

Recreate Missing .htaccess File

If the .htaccess file has been deleted or is missing from your server, you can easily recreate it without touching any code or even without accessing your server.

Just log into your WordPress site, then go to Settings > Permalinks and click on the ‘Save Changes’ button  …

(Resave your WordPress Permalinks settings

(Resave your WordPress Permalinks settings)

You don’t need to change any Permalink settings. Resaving your settings will automatically generate a new .htaccess file on your server.

To learn more about WordPress Permalinks, go here:

After resaving your Permalinks settings, refresh your web browser and check to see if this has fixed the problem. If this fixes the error, then your .htaccess file was either missing or was deleted from your server.

If the problem still persists, try the solution below.

Fix Or Replace Corrupted .htaccess File

If the .htaccess file has become corrupted, the easiest solution is to replace the existing .htaccess file on your server with a new one.

There are a number of reasons why your .htaccess file may be corrupted. To learn what some of these causes are and how to repair a corrupted .htaccess file on your server, see this step-by-step tutorial:

In addition to the information above, check out this video on how to fix the WordPress 404 error from the team at MyThemeShop:

(How to fix the WordPress 404 error. Video: MyThemeShop)

More WordPress Troubleshooting Tutorials

Please see the tutorials in the section below if you experience any other problems with WordPress:

How To Fix The WordPress Posts Returning 404 Not Found Error

(Source: Pixabay)

***

"Your training is the best in the world! It is simple, yet detailed, direct, understandable, memorable, and complete." Andrea Adams, FinancialJourney.org

Disclaimer: WordPress and its related trademarks are registered trademarks of Automattic, Inc. This site and the products and services offered on this site are not affiliated, associated, sponsored, or endorsed by WordPress, nor have they been tested, reviewed, or certified by WordPress. The owner, contributors and/or advertisers may derive financial benefit from sales of items linked to, advertised, or reviewed on this site.

***

Did you enjoy this post? Feel free to share this page with other WordPress users using the social buttons below.

Author: Martin Aranovitch

Martin Aranovitch is the founder of WPCompendium.org and the author of The Small Business Digital Manager. WPCompendium.org provides hundreds of FREE detailed step-by-step tutorials that will teach you how to use WordPress to grow your business online at minimal cost with no coding skills required!

Originally published as How To Fix The WordPress Posts Returning 404 Not Found Error.