Successful Server Migration using the HOSTS file
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?
Related Reading:
Other Interesting Posts
-
Articles
- January 2011
- April 2010
- March 2010
- February 2010
- January 2010
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- February 2009
- December 2008
- November 2008
- October 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
-
Meta







