Why Edit Your Hosts File?
Modifying your hosts file lets you view and test a site on one server while the rest of the world continues to see the site on another. That makes it an essential tool when migrating your website. With this method, you’re able to ensure that:
- Everything on the site works as expected on the new server before you update the DNS records
- The visitors to your existing website will not be affected by any potential issues related to different server environments before you’ve had a chance to resolve them
In Windows, the hosts file is located at C:\Windows\System32\drivers\etc\hosts. You will need to edit the file with administrative privileges.
Liquid Web