Previously you had the option to utilize a “temporary” URL on services. Unfortunately due to the inherit security flaws in this method, it has been disabled globally, as it was being exploited by attackers to bypass some security restrictions.
The temporary URL also causes large issues with Search Engine Friendly URL’s, and Optimisation, due to the fact it is loading from a sub-directory, and not the root of the domain.
In order to provide alternative access to sites which aren’t live, there are two other options.
Method 1: Adding an “Alias” domain, for viewing the website.
You are able to add an “Alias” domain, utilizing the “Addon Domains” utility within the users cPanel. In the steps, you will be recommended to use a subdomain of your reseller account, as both a WhiteLabelled solution, and the easiest solution over all.
NOTE: If you are using a CMS like Wordpress, this method will change URL's for content which is uploaded, to reference this temporary URL until you use some methods to change the content paths as referenced in the wordpress Codex: https://codex.wordpress.org/Changing_The_Site_URL
In the below examples, we will be using the following as an example URL
I would like to assign the above domain, to a test site, which is called “website11s932ju.com.au”, with the username “web1984s”
Once the account is created, we will need to login to the cpanel, locate the “Domains” section, and click on the “Addon Domains” button highlighted below. (Make sure the package you assign to them has enough Addon Domains in the sidebar !!)
On this page, we will specify the domain name, a username for it, and then set it so only “public_html”, is specified within the Document Root (which will show the main website for the account). Make sure you set a strong password also, as while you may not need it, it is best for it to be secure!
Once the domain has been correctly added by clicking “Add Domain”, you will be redirected to a page such as below, which will tell you it’s completed.
If the domain you used is on the server, and using our DNS cluster, the DNS will propagate within the next 60 minutes, and you will be able to visit the website in the browser!
When DNS is resolving, you will be able to see the same website is being shown at both URL’s
If you don’t have access to a domain which you can re-point, we can provide you with a subdomain of the shared server in some cases to utilize temporarily.
Method 2: Editing HOSTS File within Windows.
If you use a MAC click here
The second Method of seeing a website, prior to it being delegated officially, is to use a “Hosts File”. This is if you don’t have the ability to use the method above. Note: This method will only work if you have access to login as a “Local Administrator”, and is generally recommended for Power Users.
In a Windows Based Operating System, you will need to open Notepad, and run it as administrator.
This can usually be found in Start Menu -> All Programs -> Accessories -> Notepad, and right clicking the Icon, and clicking “Run as Administrator”
Once you have Notepad Open, Click on File -> Open, and then you can navigate to the location of the “HOSTS” file, by pasting the below URL in the top bar.
Once open, you will see a screen such as the below Image. You will then need to Add a new Line, for each website you would like to see .
As per first method, I want to see the website “website11s932ju.com.au” as it would be if it were live and pointing to one of our shared servers IP addresses, which is 220.127.116.11.
I would then add the following line, to ensure both the Domain itself, and the www. Record, redirected to the correct server, and then save.
Once saved, you may need to refresh or close, and re-open your browser, but you should then see the new website, pointing to the correct IP.