Moderator: Scooby
// In case the main domain is called, redirect to the startpage and exit
if($subhost=="$maindomain" || $subhost=="www.$maindomain") {
header("Location: http://www.$maindomain/$startpage");
exit;
}
// In case the main domain is called, redirect to the startpage and exit
if($subhost=="firstdomain.com" || $subhost=="www.firstdomain.com") {
header("Location: http://www.$maindomain/firstdirectory");
exit;
}
if($subhost=="seconddomain.com" || $subhost=="www.seconddomain.com") {
header("Location: http://www.$maindomain/seconddirectory");
exit;
}
Users browsing this forum: No registered users and 7 guests