127.0.0.1 localhost
Add lines for your site's IP address and domain name (both the non-www and www versions), so that the last few lines of the hosts files look like this:
127.0.0.1 localhost
12.34.56.78 domain.com
12.34.56.78 www.domain.com
Save the hosts file, restart your browser, and visit your site. At this point, you'll be pointing to our servers for the site, and will be able to preview it as it will work once you change the domain's nameservers and "point" the domain to your MEDIASERVE hosting.
When finished previewing, be sure and remove the added lines from your hosts file and re-save it.
Vista Users: In order to be allowed to edit the hosts file in Vista, you may have to run notepad as an administrator. To do so, navigate to Start Menu -> All Programs -> Accessories, right-click on Notepad, and select "Run as administrator".
If you are using a Macintosh OS/X system:
(You must be logged in as an administrator user)
Open the terminal utility, typically found in the Applications -> Utility folder in the Finder.
From the terminal window, execute the following command to edit the /etc/hosts file:
sudo pico -w /etc/hosts
You may be prompted to enter your Mac login password.
At the bottom of the /etc/hosts file, add the following line:
12.34.56.78 domain.com www.domain.com
To save your changes, hit Ctrl-X and then press Y when asked if you wish to save the file, and press return to save the changes to the /etc/hosts file.