It’s 404 error, not content lost. So, it’s better not to do anything with database.
First thing to do, try visiting Permalink page. Go to Settings » Permalinks, click on Save Changes button. Then clear browser cache and reload the web page. If it still returns 404 error, then deactivate all plugins and test loading web page, re-enable plugin one by one to investigate which one might have caused it.
Change your permanent rules and save — and see if it makes a difference.
If not, manually check the .htaccess file to see if there’s anything odd in there.
Hi @ypsilon131288,
Don’t panic, your site content still in database. Problem is with site rewrite rules which you have to flush.
visit http://mgsc-moseltal.com/wp-admin/options-permalink.php and hit save changes button . After that visit your site frontend, if still that not working let us know.
Hey guys,
thanks for your help so far. I saved the permalinks again, but it doesn’t change anything. Further I disabled all plugins, but it doesn’t help.
Problem is the content isn’t listed in the backend as well.. I mean, I see there should be something about 200 posts, but none is listed.
As far as I can see, there is no .htaccess file on the webserver at all.
Thank you 🙂
If you have access to the site’s database, check to see if the posts exist in the database. If you don’t have access, get your host to confirm for you.
And since you have a (hopefully good) database backup, you can always nuke everything and rebuild (be sure to backup your uploads folder, if you don’t have a backup of that already).
Hey,
yes, the content is still there in wp_posts.
As far as I can see, there is no .htaccess file on the webserver at all.
Visiting permalink page and even clicked save, and still there is no .htaccess, this also could be the problem, check on file permission and make sure WP is able to create file.
https://codex.ww.wp.xz.cn/Changing_File_Permissions
http://www.wpbeginner.com/beginners-guide/how-to-fix-file-and-folder-permissions-error-in-wordpress/
Also it’s good to check wp-config.php see if it contains the correct info of db (name).
Well, this is a strange one….
DB Connection is working fine and the wp-config is correct.
.htaccess is created now as soon I refresh the permalinks. DB contains posts at that moment.
But as soon as I turn off all plugins, all posts are gone from the database as well. I restored the database and renamed the plugin folder on the webserver itself. Magic.. all posts are there. I’ll figure out which plugin is the faulty one step by step now.
Thank you very much for your help so far. I’ll keep you posted on which one it was 🙂