Preview your site with temporary domain access

Preview a shared hosting site on the server before you change DNS or nameservers, using your computer's hosts file.

Many customers want to install and test a website on CR Servers before pointing the live domain away from their previous host. The reliable way is to tell only your own computer that the domain lives on our server. You see the site with its real domain, while everyone else still sees the previous host.

Before you start

  • Upload or install the site in the hosting control panel first.
  • Have the server IP ready: the shared hosting IP shown on your service page in the client area (or in the welcome email).

Step 1: edit the hosts file

Add one line at the end of the file with the server IP and your domain, with and without www:

SERVER-IP  yourdomain.com www.yourdomain.com

Example: if the IP is 201.x.x.x and the domain is mysite.com, add 201.x.x.x mysite.com www.mysite.com.

Windows

  1. Search for Notepad, right-click it and choose Run as administrator.
  2. In File → Open, go to C:\Windows\System32\drivers\etc\hosts (choose All files to see it).
  3. Add the line at the end and save.

Mac or Linux

  1. Open Terminal and run sudo nano /etc/hosts (it asks for your computer password).
  2. Add the line at the end, save with Ctrl+O and exit with Ctrl+X.

Step 2: check the site

  1. Close and reopen your browser (or use a private window) so it doesn't use saved data.
  2. Open http://yourdomain.com.
  3. To confirm you are seeing our server, run ping yourdomain.com in a terminal: it should answer with the server IP.

About HTTPS: the free SSL certificate is issued only once the domain points to us. During the preview, use http://. If the site sends you to https://, the browser shows a certificate warning; you can continue for this check only. If the browser won't let you continue (this happens when the previous site already used strict HTTPS), use a private window or another browser.

Step 3: point the domain and remove the line

  1. When the site is ready, point your domain (or update DNS for international domains).
  2. Remove the line you added to the hosts file, so your computer goes back to normal DNS.
  3. Retest over HTTPS once the domain points to us.

The change only affects the computer where you made it. Email, other people and other devices are not affected.

Something doesn't load? Check the IP and domain on the line, then open a ticket.