3個頂層網域
www.123.com
#www.pass.cn
## www.sohu.cn
www.123.com/doc
www.pass.cn/soft
www.sohu .cn/video
求大神 指點呀。
笨法子
$_http = $_SERVER['HTTP_HOST'];
if($_http == 'www.123.com'){
header("LOCATION:http://www.123.com/doc");
}elseif($_http == "pass"){
求大神 指點呀。
笨法子
$_http = $_SERVER['HTTP_HOST'];
if($_http == 'www.123.com'){
header("LOCATION:http://www.123.com/doc");
}elseif($_http == "pass"){
##//同上}elseif(xxxx){//同上#}else{echo "位址輸入錯誤";
########################################################## ####}###