Successful Server Migration using the HOSTS file
May 29th, 2007 by Sameer | Filed under Hosting.One of the tricks you can use to test your site after you have moved servers is to edit your Windows HOSTS file in order to ‘trick’ your machine into thinking that your site is actually somewhere else, even before updating the nameservers.
For example, you have your live site - sharpdeveloper.net on a server with IP address 72.52.15.51, but you are moving it to another server now because you have outgrown your original server.
Say you already have uploaded the files to the new server and as well populated your mySql or Sql Server databases.
Now, before updating the A record on the nameservers, you can update your local machine to point to the new server, say 81.51.11.51 by editing the file C:\WINDOWS\system32\drivers
Questions?
