- Press the Windows key.
Type ‘Notepad’ in the search field.
In the search results, right-click Notepad and select Run as administrator.
Press File > Open, then open the following file using this file path:
If requested, open the file with Notepad.
Underneath the text ::1 localhost, type in the IP address of your server and the name of your website.
Syntax as follows: (IP Address) (Domain Name)
Always type two entries for the one domain name, ie. www.example.com followed by example.com.
Press File > Save to save your changes.