Mailinglisten-Archive |
Hallo,
ich versuch folgenden Code:
<?php
if (strstr($SERVER_NAME,"all-aircrafts.de"))
{
header("Location:http://artjom.de/all-aircrafts/index.html");
}
else
{
header("Location:http://artjom.de/index2.html");
}
?>
und ich bekomm folgenden Fehler:
[an error occurred while processing this directive]
was ist falsch?
thx artjom
-----Ursprüngliche Nachricht-----
Von: php-admin_(at)_php-center.de [mailto:php-admin_(at)_php-center.de]Im Auftrag
von Sebastian Nohn
Gesendet: Donnerstag, 15. März 2001 23:53
An: php_(at)_php-center.de
Betreff: Re: [php] Erkennen über welche Domain der User gekommen ist
On Thu, 15 Mar 2001, Christopher Nehls wrote:
> Ich habe auf einem Server (bei dem ich die Serverkonfiguration nicht
> beeinflussen kann) zwei verschiedene Domains laufen. Wie kann ich es jeztt
> schaffen, dass die Zugriffe, die von der Domain 2 kommen automatisch auf
> eine Unterseite geleitet werden? Ich könnte natürlich einen
Location-Header
> setzen, nur wie bekomme ich raus, über welche der beiden Domains der
Nutzer
> kommt?
if (strstr($SERVER_NAME,"pflegenetzwerk.de")) {
header("Location:
http://vipar.meddog.net/?ARC_NAME=pflege&CONF_ID=3&USER_NAME=Guest&DIR_ID=98
2");
} elseif (strstr($SERVER_NAME,"patientenforum.de")) { // ||
$SERVER_NAME == "www.patientenforum.de")
header("Location:
http://www.patientenforum.de/patientenforum/multiforum/");
} elseif (strstr($SERVER_NAME,"pflegestandard.com")) { // ||
$SERVER_NAME == "www.pflegestandard.com")
header("Location:
http://vipar.meddog.net/?ARC_ID=2&CONF_ID=2&LANGUAGE=ger&USER_NAME=Guest&DIR
_ID=591");
} elseif ($SERVER_NAME == "hilfe.nettrade.de" || $SERVER_NAME ==
"www.hilfe.nettrade.de") {
header("Location: http://hilfe.nettrade.de/selbsthilfe/");
} else {
header("Location:
http://vipar.meddog.net/?ARC_NAME=pflege&USER_NAME=Guest");
}
Regards,
Sebastian Nohn
--
NeT&Trade GmbH - s.nohn_(at)_nettrade.de - http://nettrade.de/
phone +49 2241 204033 - fax +49 2241 204034 - mobile +49 173 5964377
+++ http://phpcrawler.de/ +++ http://jura.de/ +++ http://nohn.net/
--
** Durchgehend geöffnet: http://www.php-center.de **
Die PHP-Liste: mailto:php_(at)_php-center.de
http://infosoc.uni-koeln.de/mailman/listinfo/php
php::bar PHP Wiki - Listenarchive