www.zghnqyw.org你直接输入域名就可以了吗 或者你再跟目录放个跳转网页做个判断 不知道我理解错没
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
if Request.ServerVariables("SERVER_NAME")="www.zghnqyw.org" then
response.redirect "index.aspx"
end if
if Request.ServerVariables("SERVER_NAME")="zghnqyw.org" then
response.redirect "index.aspx"
end if
%>
</body>
</html>
存为asp文件即可