`sometimes you need to preview your website files on your hosting account prior to pointing your domain to your hosting account.
Sometimes you need to preview your website files on your hosting account prior to pointing your domain to your hosting account. You can do this by adding entries to the hosts file on your local computer. Keep in mind that we don't support modifying your system files, you're doing so at your own risk.
Required: You'll need a third-party text editor, like Notepad++, to make any necessary changes. Don't edit this file directly in a word processing application like Microsoft Word.
OS |
hosts File Location |
Windows (10, 8, 7, XP, etc.) |
c:\windows\system32\drivers\etc\hosts |
Macintosh OS X |
/private/etc/hosts |
Web Hosting (cPanel) |
/etc/hosts |
[your hosting account's IP address] [your domain name] [your domain name with www]
For example:
12.0.0.1 coolexample.com www.coolexample.com
Warning: After you're done previewing your website, and pointing your domain name to your hosting account, be sure to remove the entry from your host’s file. If you don't remove the entry and change plans or servers in the future, you won't be able to view your site.
If you don't know the IP address of your hosting account, but you know what kind of hosting you have you can find out your IP address using the links below:
Need help? Find help in our knowledgebase or simply chat to us .
Wurk and its subsidiaries are registered services provider.