Tsohost Help Centre

Table of Contents

How to edit host file

Updated Oct 31st, 2017 at 12:18 GMT

You can edit the hosts file on your PC to bypass the DNS lookup and access the site on our servers through your main domain rather than the preview URL. This affects ONLY your PC and all other visitors to your website will see the site as normal.

The location of the file is as follows:

  • Windows PC - c:/windows/system32/drivers/etc/hosts
  • Mac OSX - /private/etc/hosts
  • Linux - /etc/hosts

Just open it up in your favourite text editor (e.g. Notepad) as an administrator and add that line on the bottom:

[Insert hosts file line here (‘IP address’ <space> ‘domain name’ <space> ‘domain name with www’]

so for exmaple - yourdomain.com www.yourdomain.com

Once you have made the change save the file, restart your PC and browse to your website as normal.