1. Home
  2. More...
  3. How Can I Preview my Website before Changing the Domain’s DNS Records?

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

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:

Windows7, 8, 10C:\Windows\System32\drivers\etc\hosts
Windows Phone/Mobilerecord in HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts
macOSMac OS X 10.2 and newer/private/etc/hosts
iOSiOS 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: 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 the server’s IP address is, you can access this information in cPanel » General Information panel - Shared IP Address.

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.

Updated on 02.07.2019

Was this article helpful?

Related Articles