联系:手机(13429648788) QQ(107644445)
链接:https://www.orasos.com/php%e9%a1%b5%e9%9d%a2%e8%b7%b3%e8%bd%ac.html
标题:php页面跳转
作者:惜分飞©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]
我把blog从http://www.66yj.com/blog迁移到http://www.orasos.com域名下,当用户访问以前blog地址时,自动跳转到当前blog的对应文章
$url_this=strtolower('http://'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); $go_url=str_replace('http://www.66yj.com/blog','http://www.orasos.com',$url_this); header("location:$go_url"); exit;