hallo ich brauche hilfe ich habe zwei domains fuer zwei homepages was solle ich da alles machen damit jede seite abgerufen wird
erster domain
www.nadordream.net (publik_html/ordner1/ )
zweite domain
www.namawude.com (publik_html/ordner2/ )
hier ist der php code nur weiss ich nicht wo was hinkommt
<?
$SiteNameURL = $_SERVER['HTTP_HOST'];
switch (strtolower($SiteNameURL)) {
case "domain.com": //MUST BE LOWER CASE
header("Location:
http://" . $_SERVER['HTTP_HOST'] . "/page1.php");
break;
case "www.domain.com": //MUST BE LOWER CASE
header("Location:
http://" . $_SERVER['HTTP_HOST'] . "/page1.php");
break;
case "yourotherdomain.com": //MUST BE LOWER CASE
header("Location:
http://" . $_SERVER['HTTP_HOST'] . "/page2.php");
break;
case "www.yourotherdomain.com": //MUST BE LOWER CASE
header("Location:
http://" . $_SERVER['HTTP_HOST'] . "/page2.php");
break;
case "subdomain1.domain.com": //MUST BE LOWER CASE
header("Location:
http://" . $_SERVER['HTTP_HOST'] . "/page3.php");
break;
case "subdomain2.domain.com": //MUST BE LOWER CASE
header("Location:
http://" . $_SERVER['HTTP_HOST'] . "/page4.php");
break;
default:
header("Location:
http://" . $_SERVER['HTTP_HOST'] . "/other.php");
}
?>