Published on August 7, 2017 by WPBeginner

404 errors can pop up from time to time due to how complex WordPress is behind the scenes. These errors can make it seem like your site is completely gone but you don’t have to worry we have helped many users work through removing this error. In this video we will show you how to fix your WordPress posts returning the 404 error.

Text version of this tutorial:
www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-posts-returning-404-error/

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook:
www.facebook.com/wpbeginner

Follow us on Twitter:
twitter.com/wpbeginner

Checkout our website for more WordPress Tutorials
www.wpbeginner.com/

Summary of this tutorial:

The first thing we can say when this happens is don’t panic this is something that can happen and is fixable.

The primary step for this will be to log in to your WordPress site and under Settings, Permalinks and pressing the save button again.

If that method did not work, we would recommend using a FTP program to be able to edit your site’s .htaccess file directly.

If you do no know what a FTP program is we would recommend taking a look at our article:

www.wpbeginner.com/beginners-guide/how-to-use-ftp-to-upload-files-to-wordpress-for-beginners/

Download your site’s .htaccess file and open it to edit, we will add our recommended code snippet from the written article and save our changes.

With the changes saved you will now reupload the file, overwriting the old file with your changes.

You should now no longer have the 404 errors on your posts.

Leave a Reply

7 Comments on "How to Fix WordPress Posts Returning 404 Error"

Notify of
avatar

Mo Asghari
Guest
Mo Asghari
3 days 19 hours ago

Life saver tips! Thanks!

Jeremy Schwegmann
Guest
Jeremy Schwegmann
6 days 16 hours ago

Brilliant. This worked for me. Kudos, liked and subscribed. 🙂

Beyond Multisite
Guest
Beyond Multisite
7 days 2 hours ago

Also keep in mind that you may have other code in the htaccess file too. So don't just replace everything in there unless this is the only way your site is fixed. Some security plugins and caching plugins may add code there for example. There should be a comment before the code that indicates what it does or which plugin added it.

Ludovic Gauthier
Guest
Ludovic Gauthier
8 days 2 hours ago

I upload the file but it doesnt want to override it.

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
5 days 12 hours ago

you may want to ensure you didn't save it as .htaccess.txt. When you save the file ensure it is set to all files rather than a specific file type as that is the normal cause

Beyond Multisite
Guest
Beyond Multisite
7 days 2 hours ago

Check the file permissions. You can do it with the FTP program. Make them the same as other files. Someone might have changed them to improve security.

Laercio Civali
Guest
Laercio Civali
12 days 16 hours ago

Thanks!

wpDiscuz