https://help.superhosting.bg/en/hosts-file.html
  • bg
  • en

Hosting, Domains, Virtual Private Servers (VPS), Managed VPS, SSL Certificates

How Can I Preview my Website before Changing the Domain’s DNS Records?

More...
hosts

You can access your website through a web browser even if your domain is not yet redirected to the hosting account. The hosting account needs to be activated.

You can use this option if you have not redirected the domain through DNS records or name servers or you have done it a few minutes ago, but the DNS data is still not propagated.

To access your website you first need to specify your domain in the hosts file of your operation system. This way the domain will be loaded directly from the server only if accessed from your PC. This is very convenient if you are moving your website to SuperHosting.BG and you want to make sure everything works properly before redirecting the domain itself.

The hosts file can be in:

OS version where
Windows 7, 8, 10 C:\Windows\System32\drivers\etc\hosts
Windows Phone/Mobile record in HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts
macOS Mac OS X 10.2 and newer /private/etc/hosts
Unix/Linux /etc/hosts
Android /system/etc/hosts
iOS iOS 2.0 and newer /system/etc/hosts

Edit hosts file on Windows OS

For Windows open the following directory: C:\WINDOWS\System32\drivers\etc

The hosts file is located in the directory. Copy the file on your desktop and open it in a text editor such as Notepad. At the end of the file you need to add the server IP where your hosting account is located together with the associated domain as follows:

91.196.0.1 mysupersite.com www.mysupersite.com

You need to fill in your domain name and your hosting account server's IP address.

If you are not sure which IP address you need to use, you can find this information in your cPanel. After accessing cPanel, select Statistics from the main menu on the left and then click Server information and software versions.

Save the file and return it back to the directory. Restart the browser and access your domain. Now it loads from the new hosting account.

After finishing the tests you would better delete the specified lines.

500px270px
SuperHosting.BG

Comments

avatar
  Subscribe  
Notify of
All rights reserved © 2005-2018 , www.superhosting.bg