How to change your local machines host file to preview your site

Windows Users

Open the file located on your computer: C:\WINDOWS\system32\drivers\etc\hosts in notepad and then copy the code and paste the code from the textarea below

Apple Mac Users

On the top Mac bar select 'Go' and then select 'Go to folder', this will then bring a window up with a field which you will need to enter the following: /etc. This will direct you to the folder where you will need to open the file named hosts with TextWrangler (Download TextWrangler Here).

Example of hosts file below:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
# Change IP and domain name to point to Host Media UK servers from your welcome email.
208.0.0.0 yourdomain.com
208.0.0.0 www.yourdomain.com

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

What is a CNAME Record

A CNAME, or Cononical Name, record tells DNS that this hostname is an alias of another domain...

What is an A Record

"A" records (also known as host records) are the central records of DNS. These records link a...