Go into your WordPress dashboard and open up the permalinks settings. Just click save without changing anything. If you have any cache plugin, purge all caches. You’ll see your entire site is working again.
I’m not sure what is causing these issues, but this fix has worked for me a dozen times/migrations.