Ich habe eben ein kleines Beispiel gebastelt, dass Du für Deine Zwecke abändern kannst. Dazu musst Du "domain-eins.de", "domain-zwei.de", usw. entsprechend ändern.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20: | <?
$domain = $HTTP_HOST;
if (ereg("www", $domain)) {
$domain = explode(".", $domain);
$domain = $domain[1] . "." . $domain[2];
}
switch($domain) {
case "domain-eins.de":
header("location:domain-eins.html");
break;
case "domain-zwei.de":
header("location:domain-zwei.html");
break;
default:
header("location:standard.html");
break;
}
?> |