Moved site, Old links in pages still pointing to old host

The easiest option would be to install a plugin called better search replace, this will only work for the database. You can then search the database for instances of x and replace with y – x obviously being the URL on the old site and y being the URL of the new website. Be sure to back up the website before doing any of this.

You can also string locator to find any instances of the URL that are hardcoded in to the theme itself.

For future reference, if you want to very easily migrate a website from one website to another, use a plugin called All in One WP Migration, it’s free up to 500mb. It will automatically change all URL references in the database from the site it was exported on, to the new site that the AIOWP file was imported to.