Guys,
In one the website I was also facing same issue but I didn’t do so much just went to permalink option under settings and then set it to default and save it after that it was running fine but make sure that you have updated new domain name or url in post_content column and in guid in wp_post , same in site url and home url in wp_options.