首页 > 开发 > Php > 正文

php指定网址跳转代码实例

2020-09-12 12:55:59
字体:
来源:转载
供稿:网友
php网址跳转代码实例:

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表