php网页指定网址跳转代码
- 时间:2015年04月02日 15:41:43 来源:魔法猪系统重装大师官网 人气:7573
<?
$s = $_SERVER['QUERY_STRING'];
if ($s == "http://www.baidu.com")
{
$s = http://www.cr173.com;
}
if ($s == "http://www.163.com")
{
$s = "http://www.cr173.com";
}
header("Location:".$s."");
?>
一般都是用 header , 稍微高级点的还要在header 再加上其它的东西