判斷網址進行跳轉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"); }