Edit your hosts file to preview a domain name

If you want to preview your site on our servers without changing DNS or Cpanel's temporary link shows corrupted or broken data use next:

For Windows 7
File should be here

c:\windows\system32\drivers\etc\hosts

For Mac
File should be here

sudo nano /private/etc/hosts

For Ubuntu
File should be here

sudo vi /etc/hosts

Open it and add the following line to the botton of file

11.22.33.44 yourdomain.com www.yourdomain.com subdomain.yourdomain.com

Where 11.22.33.44 is your server's IP address

Save it and check yourdomain.com in your browser

Enjoy

Similar Posts:

    None Found

Leave a Reply

Your email address will not be published. Required fields are marked *