您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> php编程 >> 正文

php指定网址跳转代码实例

作者:佚名    责任编辑:admin    更新时间:2022-06-22

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