PHP实现301跳转

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

 
$var = $_SERVER['REQUEST_URI'];
header( "HTTP/1.1 301 Moved Permanently" ) ;
header("Location:http://www.open-open.com".$var);
exit;