If you need to check or test the website before making it to live, you can use temporary URL method. The temporary URL of the website will be like “IP address/~username of domain/”. Sometimes this will be disabled due to the security risk as it will affect the other sites. During that time, you can access the website via a host file. Please follow the below steps in order to access the website using a host file in Windows machine.
Step 1: Go to start menu or Press windows key. Type Notepad, but do not press enter.
Step 2: Right click on Notepad and click Run as Administrator
Step 3: Enter the login credentials if you get the popup for login, otherwise click Yes.
Step 4: Click File > Open
Step 5: Navigate to C:\Windows\System32\drivers\etc.
- First navigate to your C: drive(Windows:C)
- Then navigate to the Windows folder
- Then find the System32 folder
- Then select drivers folder
- Then locate the etc folder
Step 6: Change 'Text Documents (*.txt)' to 'All Files'
Step 7: Select 'hosts' and click 'Open'.
Step 8: Add the IP address of the server that is hosting your website. Press Tab and add the domain name of your website.
(Ensure that you use the details provided in the migration email for this section.)
Step 9: Once done save the file by clicking on 'File' and then 'Save'
Step 10: You should be able to access your website (without a temporary URL) from your local machine by entering the domain name in the address bar of your browser.
(Repeat the same process on any other machines you will be using when creating content for the site before making it live.)