Host header and subdomain
Host header is the address/URL that is displayed in the Internet browsers address-field after http:// (example: www.your-domain.com).
Your-domain.com and www.your-domain.com is already created on a standard installation. If you wish to have other sub domains, simply contact support to activate the name service on your domain name.
A domain name is divided up into 3 levels (can be more, but this is the most common):
As a user of the 2. level, you have full control of 3. level domains linked to your 2. level domain. In stead of www you can create support that will access the support page directly on your main site, something like nyheder.tv2.dk
To make requests for a sub domain be transferred to a certain page or subfolder you could use a PHP script like the following:
<?
switch ($_SERVER['HTTP_HOST']) {
case "support.your-domain.com":
header("location: http://www.your-domain.dk/support/");
break;
case "sales.your-domain.com":
header("location: http://www.your-domain.com/sales/");
break;
default:
header("location: http://www.your-domain.com/frontpage.html");
}
?>
In the above example code there are 2 sub domains (support and sales). The last location is where the visitor will be directed to as a default or last resort.
This PHP code must be placed in a file with the name index.php and uploaded to the www folder via FTP or the filemanager in the Planet Controller.
Now that the file is in place and the linked pages setup correctly you should be good to go. If you want the URL or address in the browser to stay static, look at these pages that will tell you how to set up a frameset where you can make an empty (0%) frame and another on 100% where your contents will be.

