Editing the hosts file is useful as it tells your computer to visit a certain web server when you type a domain name into your web browser. What this lets us do is to develop the site in a non public location but still be able to provide you some form of access to it to test and preview the site. Once complete any domain names can then be properly pointed to make the development site live.

Here is how you edit your hosts file:

  1. Hit the start button and search for "notepad"

  2. Run notepad as administrator

    run notepad as administrator

  3. Go to file, open

    notepad file open

  4. Once you have done this find your local disk. You can do this by clicking on "This PC" or "Computer" and finding the local disk as outlined below.

    navigate to local disk

  5. Ensure in the bottom left where it says "Text Documents" you change it to "All files"

  6. Then navigate through the folders to the following location:
    Local Disk > Windows > System32 > drives > etc

  7. Open the file called "hosts"

  8. now that you are in the file you can edit it to add new records. A record will look something like this:
    123.21.324.21       somesite.com
    Just add the record that we have provided you / you have been given to the very bottom of the file on its own new line and save the file.

    Example:

    example opened hosts file

  9. to disable the change simply add a # infront of the line and save e.g:
    #123.21.324.21       somesite.com

  10. This will now allow you to test the in-development website.