Login
.php header - Location
742 просмотров
Перейти к просмотру всей ветки
in Antwort Sergo2008 31.10.08 10:24
Это точно железно работающий код! 
<?php
$url=$_SERVER['HTTP_HOST'];
if (($url=='www.zahar.de')||($url=='zahar.de')) {header("Location: http://www.zahar.de/zahar/news/index.php");}
else{ header("Location: http://www.zahar.de/bigmir/news/index.php");}
?>
Java код пока скрыл
СПАСИБО!

<?php
$url=$_SERVER['HTTP_HOST'];
if (($url=='www.zahar.de')||($url=='zahar.de')) {header("Location: http://www.zahar.de/zahar/news/index.php");}
else{ header("Location: http://www.zahar.de/bigmir/news/index.php");}
?>
Java код пока скрыл

СПАСИБО!