https://codex.www.ads-software.com/Moving_WordPress#Keeping_Your_Domain_Name_and_URLs
Basiclaly you need to set up the DNS to point ot the new server, and use some form of search-and-replace plugin/script to update all of the URL’s in the database – and hope that there’s none that have been hard-coded into the theme (talking from experience there…).
]]>