How do I view my website on the new server using my PC's host file?
You've moved your site to the new server but it's not yet live (since the DNS hasn't been transferred). You can view your website on the new server by editing a file on your computer. Try either of these two applications:
- The Hostsman Local Hosts Editor for PC.
- The BlueLifeHosts editor for PC.
- The Hosts File Editor for PC.
If the software listed above is no longer available or not working for you, you may manually edit your local hosts file to force your PC to temporarily resolve the domain name to a different IP address by doing the following:
- Windows: Edit the file
You can do this by clicking Start, then Run, then typing notepad C:\WINDOWS\system32\drivers\etc\hosts into the Run box, and clicking OK.
Once you've opened your hosts file, add the following line to the end of the file:
ip_address domain name
where ip_address is the IP address of your new server and domain name is your website's domain name.
For example, if you were moving your site www.example.com to a web server with an IP address of 126.96.36.199, you'd add the line:
Now save the file and quit the editor.
You may verify you are seeing the new server IP by opening a terminal window (Start > All Programs > Accessories > Command Prompt on Windows) and typing:
If you see your new server's IP address in the output you are set.
Now open a browser and enter your website's URL in the address bar. This will display the site on your new server.
Once you've verified all is working contact support and work through finalizing the move process.