它们两个使用的协议不一样呀,但是都是通过网络访问的,所以可以从head信息中取到信息。
另外,对于端口也应该不同才是。
如果想要更详细的情况,建议你看下RFC说明。

解决方案 »

  1.   

    取得head信息,判断客户端浏览器的类型
      

  2.   

    <?php
        $strAccept= $_SERVER['HTTP_USER_AGENT']; if(strpos($strAccept,'MSIE')!==false){
    //exit();
    header("Location: pc/index.html"); 


    }elseif(strpos($strAccept,'DoCoMo')!==false) {

    header("Location: i/index.html"); 

    }elseif(strpos($strAccept,'UP.Browser')!==false){

    header("Location: ez/index.html"); 

    }elseif(strpos($strAccept,'J-PHONE/') !==false|| strpos($strAccept,'Vodafone/') !== false) {

    header("Location: j/index.html"); 

    }else{
    header("Location: pc/index.html"); 

    }?>
    $strAccept:先得到useragent信息,不同的浏览器,信息也不一样,你可以echo一下看看