ich hab das bei mir so gelöst - und es funzt einwandfrei:
PHP-Code:
<?php
if ($HTTP_HOST == "www.domain1.at"):
HEADER("Location:http://$HTTP_HOST/index1.php/\n\n");
elseif ($HTTP_HOST == "domain1.at"):
HEADER("Location:http://$HTTP_HOST/index1.php/\n\n");
elseif ($HTTP_HOST == "www.domain2.com"):
HEADER("Location:http://www.domain1.at/Verzeichnis_fuer_domain2/index.php\n\n");
elseif ($HTTP_HOST == "domain2.com"):
HEADER("Location:http://www.domain1.at/Verzeichnis_fuer_domain2/index.php\n\n");
endif;
?>
lg ekki99