- Upload code to the new host.
- Change DNS to point to that host's IP when finished.
- When everything is OK, delete the old code.
Note in extreme cases, it may take up to 48 hours before the code / DNS is effective at the new host, but that is the exception. So be sure that the code functions properly at the new host (Ip) before you delete the old code. Change a word to see where it is effective and / or find the Ip of the domain. You must also be sure that the code is
identical on the old and new IP. You may use
a test server to test this thoroughly if it is a large site. That
must be accertained before you change the DNS.