I had similar problems:
I’d changed my site’s url, restored the database, and then wasn’t able to save / edit pages or posts (it just went to the site homepage with no changes made)
This .htaccess fix in wp-admin did the trick for me, and it’s working again:
https://www.ads-software.com/support/topic/129967?replies=2#post-602151