<%
Option Explicit
dim enterurl
if instr(Request.ServerVariables("http_accept"),"wap")>0 then
enterurl="
http://wap.hu60.cn"
else
enterurl="
http://www.hu60.cn"
end if
Response.Redirect(enterurl)
%>
---------------
<?php
$iswap = $_SERVER['HTTP_ACCEPT'];
if(strpos($iswap,"wap")>0)
{
header("location:
http://wap.hu60.cn");
}
else
{
header("location:
http://www.hu60.cn/");
}
?>
不懂得请多多百度,第一个为asp格式 第二个为php格式