We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
A hosts file modification is a change you can make to Windows that will resolve domain names to specific IP addresses. This is useful when migrating your site to our servers and you haven't yet updated your nameservers. You can keep your domain's nameservers pointing to your previous host while you fully test your website on our servers, preventing any disruption of your site for your visitors while you test your site on your new server. It may sound complicated, but it really is not. Your hosts file is a just a text file that you can edit in notepad.
This article covers the steps for making this modification if you are running the Windows operating system. If you use a Mac, please see our article How to modify your hosts file on a Mac.
Because your hosts file is a system file, you'll need to run Notepad as an administrator when you edit it. Doing this is quite easy. Find Notepad in your start menu (usually in the accessories), right click on in, and then click "Run as administrator".
Before you can edit your hosts file, you need to find it. Not all versions of Windows store it in the same place, but in our experience it's usually located in c:\windows\system32\drivers\etc\hosts Other possible locations include:
We now need to open the hosts file:
With your hosts file now in Notepad, it should look similar to the below:
We recommend that you back up the host file before making any modifications to it. To do this:
As always, this is not as hard as it sounds. We need to determine your Web Hosting Hub Server's IP address, and we'll enter this into the hosts file.
Notice that we enter two lines, one with our domain, and another with our domain including the "www". If you are testing your site on any other subdomain, such as blog, be sure to enter it as well, as in:
After making this change, we'll need to save the file. Earlier, we asked that you save a copy of your hosts file as a backup. If you click "File" - "Save" in Notepad, you're going to save these changes to the backup file, not the original file. What you'll need to do is:
Congratulations, you've just updated your hosts file! For some users, there is one more step, flushing their DNS.
You're website's IP address may be saved in your computer's cache, so we'll need to clear this temporary data so that the IP address you just entered into your hosts file will take effect. To do so:
If you have any browser's open, close them and then open them again. You should now be able to successfully test your website on your new server.
This is a very good question! If your website was migrated successfully, then it should look exactly the same on both servers. An easy way to test is to upload a file to your Web Hosting Hub server and call it something similar to "hosts_test.html", and in the file type something such as "You are on the new server". You can then visit yourdomain.com/hosts_test.html. If you see the message you just typed in, then you test has worked successfully. If you do not see the test, we recommend restarting your computer and then testing again.
After your testing is complete, be sure to undo the changes you made by repeating the steps above and instead remove the entries in your hosts file that you added today.
We value your feedback!
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|