SANGKRIT.net’s cPanel Hosting allows you to preview a website before actually making it visible to others requesting your domain name.
This can be done using your hosting account’s preview feature which is useful when you are setting up a new website for a domain that is currently active, either in your hosting account or somewhere else.
Start with login to your SANGKRIT.net account and then follow these steps:
- Visit My Account
- Click My Products
- Click Web Hosting
- Next to the cPanel account you want to use, click Manage.
- Click cPanel Admin.
- In the Domains section, click Preview Website.
- Next, to the domain, you want to use, click Preview.
Previewing Dynamic Websites
Given cPanel preview feature doesn’t work for highly dynamic websites. So if your website is built with WordPress, Drupal, etc, it generates content dynamically based on your domain name. The cPanel preview will not work properly in this regard.
Hence, to get a complete preview of your dynamic website, you should instead preview your website by editing your hosts file.
By adding entries to your hosts file you can view the files you have uploaded to your hosting account before really changing your domain’s nameservers.
For doing so, add your hosting account’s IP address as an entry on your computer’s host (your computer).
The location of the file depends on your operating system:
|OS||Host File Location|
|Windows (8, 7, XP, etc.)||c:\windows\system32\drivers\etc\hosts|
|Macintosh OS X||/private/etc/hosts|
You may need to make a copy of your hosts file to another location to make the changes then copy it back. Now, add an entry for your domain/hosting account using the following format:
[your account's IP address] [your fully qualified domain name]
You can also add the www version of your domain. You can add that version to the same line, like so:
22.214.171.124 coolexample.com www.example.com
After domain propagation, remove the entry from your hosts file because when you do not remove the entry and change plans or servers in the future, you will not be able to view your website.