判斷網址進行跳轉

 判斷網址進行跳轉php

if( 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']=="http://yudw.com"){
Header("Location: http://yudw.com/forum.php"); 
}
 if( 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']=="http://yudw.com/"){
Header("Location: http://yudw.com/forum.php"); 
}

 if( 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']=="http://yudw.com/index.php"){
Header("Location: http://yudw.com/forum.php"); 
}
相關文章
相關標籤/搜索