PHP网页指定网址跳转代码_PHP网页重定向代码示例,PHP网页跳转代码

$s = $_SERVER[QUERY_STRING];
if ($s == http://www.baidu.com)
{
$s = ;
}
if ($s == http://www.itmop.com)
{
$s = ;
}
header(Location:.$s.);
?>

一般都是用 header , 稍微高级点的还要在header 再加上其它的东西