WEBFI-WordPress-How to Fix WordPress Posts Returning 404 Error
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:
http://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:
https://www.facebook.com/wpbeginner
Follow us on Twitter:
http://twitter.com/wpbeginner
Checkout our website for more WordPress Tutorials
http://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:
http://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.
source
Wow, THANK YOU! I hadn't a clue why I started getting 404 messages. I'd looked at some videos with long workarounds. Then I found this. Fully functioning again within less than 5 seconds. Amazing.
One page still came up with a 404 error. But a quick page refresh, after your initial step, fixed it.
Thanks a ton..after struggle i solved my prob
if this doesn't solve, next thing to check is that mod_rewrite is enabled in apache
https://stackoverflow.com/questions/869092/how-to-enable-mod-rewrite-for-apache-2-2
There is no permalinks anymore
You lady saved me from a heart attack xD Thank you so much
what do i do if it doesnt fix it on a multisite 🙁
thank you!!
Thank you so much, i already started freaking out about my website not working.
The editing of the .htaccess file fix my site after searching for the answer for a long time Thank you!!
Thanks, sometime small changes makes big difference, i was looking to this solution for very long. Video is simply, clear and to the point. Keep the good work going.
Thank you!! This worked! I did have to go to permalinks and switch to post name instead of day and name and then save changes. It worked perfectly!
What if you're using Nginx and the first permalinks step didn't work? I don't know how WordPress glitched like this… Ok I just fixed it! Here's what I did:
I had custom structure always selected with https://siteroo.design/blog/%category%/%postname%/
But in Optional I also had Category base with blog, so I I removed blog from the base and my post started working again. Weird because I thought it was working 2 days ago with the same setting. :/
so precious tips ! thanks <3
Grt it worked for me…………
wow, you save my life, thank you for your video
THANKSSSSSS
Thank you!
none of these fixed my website, my 404 page looks different it instead uses the Apache 404 error page
Than you very much.
THANK YOU!!!
You saved my day
Saved my life, thanks!!
I can't believe it's just as simple as that. I just migrated from one host to another and had this problem. I almost lost my mind when it happened. Thank you very much for this single, but amazing fix.
Thank you so much Love you
My Wp dashboard not open now…😭
You mister saved my life .
Wow you are awesome thank you!
i was just about to create another page I THANK YOU SO MUCH!!!
Thank you. I keep a copy of all of our websites in a subdirectory on the same server and the restore from Akeeba didn't correctly change the htaccess file. I copied the site to a local server and that worked fine because the site was in the root of the copy of the domain. It appeared that the htaccess file had only ". /index.php [L]
" when it should have had ". /subfoldername.com/index.php [L]". I assume that it was looking in the root of the server (up to the top instead of in the subfolder) for the subpage addresses? So I did the admin > Settings > Permalinks and Saved the changes and it worked. I studied the changes compared to the old htaccess file. Thank you so very much. You saved me hours of work.
But what to do if I can't get access to the admin dashboard?
thanks
this didn't work for me still getting this message….. The requested URL /links/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. any advice?
Thank you soooooooo much mam thank you
omg!thank you very much!
i cant access to my wp-admin is impossible im crying rn
THANK YOU SOOO MUCH!
if i have one in my website can hurt on seo
Thank youuuuuuuuu!
Hi! I can’t access the dashboard as well… how do i fix it?
site-wide 404 error. when adding a new plugin.
while trying to update posts and pages.
all are ending with a 404 error. How to fix this?