How can I view my website on Windows before repointing my domain?

To view/test your website before repointing the DNS of the domain, you can edit a text file (called the ‘hosts’ file) on your computer to bypass the live DNS for the domain. This change will only apply to your computer and will make no changes to the live DNS/website of the domain.

First we will need to confirm the IP address settings to use, to access your account.

 

  1. Login to your LetsHost hosting account cPanel
  2. On the right handside of cPanel under the “General Information” section your IP address will show under the “Shared IP Address” section.

 

The entry that you will need to add to your hosts file will follow the following format:

ip_address mydomain.com www.mydomain.com

 

ip_address = the number from the “Shared IP Address” section as per the above.
mydomain.com = substitute your actual domain name for this
www.mydomain.com = substitute your actual domain name for this

For example:
80.93.28.167 yourdomain.ie www.yourdomain.ie

 

Next we need to open the hosts file on your computer.

  1. You will need to run Notepad as Administrator on your PC – Right-click on the Notepad icon and click ‘Run as Administrator’ > click Yes
  2. In the top left of the new notepad window click on File > Open
  3. Navigate or enter at the top the following directory:
    C:\Windows\System32\drivers\etc
  4. Make sure to change the drop down in the bottom right to “All Files”, the “hosts” file should show up then, double click the hosts file to open
  5. NB you will need to overwrite the file for it to save correctly, to do this click File in the top left then Save As…
  6. Change “Save as type” to All Files for the hosts file to appear in the list.
  7. Double click the hosts file and you should receive the following popup:
  8. 'host already exists. Do you want to replace it?'
  9. Click Yes to save.

 

Next time you go to the website it will load as if it was live from your LetsHost account.

You may need to clear your browser cache or view from an incognito window however.

If you have any questions on the above, please do not hesitate to 'Open a Ticket' and we will be happy to advise further.

  • #website, #windows, #repointing, #domain
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I set up my own holding page?

While you are working to build your new website, it is often desirable to put up a holding or...

I can’t see the website I just uploaded by FTP

If you have uploaded your website but cannot see it online there may be some simple reasons for...

How do I upload files to my hosting account?

If you are designing your website on your own computer, you will need to upload the website files...

I cannot FTP to my account – am I blocked?

LetsHost operate multiple layers of account security for all users. If you entered a password...

How to upload a backup of your website files

When you are moving a website from one hosting account/provider to another, you will often have a...