Activating a Subdomain on your Linux Webspace
Customers who have signed up for our Premium and Professional hosting plans can follow these steps to activate a free Subdomain to on their Linux webspace
- Login at https://manage.myhosting.com
- Click on Home.
- Click on Hosted Domains
- Click on Add New Subdomain
- Enter the new Subdomain you wish to create
- Enter the hosting space you want to create the subdomain on
- Enter the Mail hosting space you want to create users on (if needed)
Changes to my Windows Account
Adding the Linux account will have no effect on your Windows account. The Linux sites are run on separate servers and use a sub-domain based on your existing domain name for web access. At any time you can disable your Linux account through your account control panel without having any impact on your Windows hosting account.
Redirecting Sites
There are a number of different ways you can redirect traffic from one page to another. Below are 5 examples which you can try:
Simple META Tag Redirection
You can use a simple META tag to redirect traffic from one area of your site to another. For example, if you want to redirect your visitors from www.whateveryouwant.com to yourdomain.com, you could insert the following tag inside the HEAD of your HTML file:
<META HTTP-EQUIV=REFRESH CONTENT="0; URL=http://yourdomain.com">
Anyone viewing that page would be redirected to http://yourdomain.com in 0 seconds.
Simple ASP Redirection
You can also create a simple redirection script using ASP, to redirect traffic from your Windows account. You can simply create a new ASP file named default.asp which includes the following code:
<%
Response.Redirect ("http://yourdomain.com")
%>
Please note that since this is an ASP script, it will not work under your Linux account.
Simple HTML Recirection using Frames (with cloaking)
You can use a frame-set to redirect traffic from one area of your site to another. The advantage of this method is that the domain name still shows in the browser's address bar even after the redirection. This is achieved by "hiding" the redirection in a frame-set where the first frame is zero width or height:. You can create a new file named index.html and include the following code:
<html>
<frameset cols="0,*" framespacing="0" border="0" frameborder="0">
<frame name="zero" scrolling="no" noresize>
<frame name="main" src="http://yourdomain.com">
</frameset>
</html>
Advanced ASP Redirection
Using this ASP example, you can redirect more than one domain to more than one destination. Create a default.asp file with the following code:
<%
Select Case Request.ServerVariables("HTTP_HOST")
Case "whateveryouwant.com", "www.whateveryouwant.com"
Response.Redirect "http://yourdomain.com"
Case "yourothername.com", "www.yourothername.com"
Response.Redirect "http://yourdomain.com/somewhere"
End Select
%>
Add "case" statements for each domain name you want to redirect. You can automate this further with a database containing each domain name and corresponding redirect destination.
Advanced ASP Redirection using Frames (with cloaking)
Another variant of the above example includes a "cloaking" option. This is basically a combination of example 3 and example 4. The domain name still shows in the browser's address bar even after the redirection. This is achieved by "hiding" the redirection in a frame-set where the first frame is zero width or height. Create a default.asp file with the following code:
<%
Select Case Request.ServerVariables("HTTP_HOST")
Case "whateveryouwant.com", "www.whateveryouwant.com"
destURL = "http://yourdomain.com"
Case "yourotherdomain.com", "www.yourotherdomain.com"
destURL = "http://yourdomain.com/somewhere"
End Select
%>
<html>
<frameset cols="0,*" framespacing="0" border="0" frameborder="0">
<frame name="zero" scrolling="no" noresize>
<frame name="main" src="<%=destURL%>">
</frameset>
</html>
Add "case" statements for each domain name you want to redirect. You can automate this further with a database containing each domain name and corresponding redirect destination.
Accessing your account by the Hotlink
It is possible to FTP files to your Linux account and view your site while waiting for your account domain to become active. Access through the Hotlink address or "Instant Access URL", for those who want to upload files before their domain transfer has completed requires a few additional steps. You can find your Hotlink in the Customer Control Panel at:
- Click on Home
- Click on Hosted Domains
- Click on your domain name
- Click on Web Hosting Settings
- You will see Name in the Basic Settings sections. This is your Hotlink to access your site.
Uploading Files
You can either upload files to your account via FTP, or you can use the myhosting.com File Manager.
The myhosting.com File Manager gives you the ability to upload files to your website.
- To start, access the myhosting.com File Manager from your Control Panel.
- First navigate to the folder that you wish to upload the files to. To go to a folder, click on the folder name, to go up one level, click on the Up icon in the menu of the File Manager. Once you have gone to the folder you want to upload to, click on the Upload files button. You will be presented with a pop-up that allows you to select up to 3 files to upload.
- Begin at the top of the list. You can click on the Choose File button beside the first line to select your file. Once you click Choose File, a pop up window will appear that is the same as the Open option in Windows Explorer. Navigate through your computer and select the file you wish to upload and click Open. The location of the file and the filename should appear in the field on the left of the browse button.
- Please repeat the above steps if you wish to upload more than one file. Use one line for each file you wish to upload. If you want to upload more than 3 files, upload 3 files first, and then repeat the process for the other files.
- When you have selected all the files you wish to upload click on the OK button. This can take from a few seconds to several minutes. Please be patient and allow this to complete. Do NOT close this window.
- Once the file uploading has been completed, you will be returned to the myhosting.com File Manager window and it will display to you all the newly uploaded files along with existing files.
Included Email Accounts
You do not get any extra email accounts with your free Linux hosting option. When creating your subdomain you can choose to activate email for your subdomain as well.
Path to Free Linux Account
The absolute path to your Linux website is /var/www/domains/x.yourdomain where x.yourdomain is your Free Linux sub-domain name.