Preview site before changing DNS

When it comes to migrating a website to a new server it’s important to test the site before changing the DNS of you domain to point to the new hosting account. The best way to do this is to cahnge the host file on your local computer to point to the new account. Here is how it;s Done.

 

First open Notepad, be sure to run as administrator.

 

Navigate to the hosts file.

C:\ Windows\system32\drivers\ect\hosts

 

Once you open click at the bottom of the file and enter your new hosting IP and domain as follows and click save.

 

 

After you have tested your site on the new hosting account and it is functioning as expected you can now change your DNS to point to the new hosting.

 

 

 

 

 

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*