1.首先你的虚拟主机要能支持绑定多个域名 2.在index.asp中放入一段代码用以判断域名和转向到子目录 PHP: <% Dim StrDomain StrDomain=Request.ServerVariables("SERVER_NAME") '获得包含域名的字符串 select case StrDomain case "www.aaa.com" Response.redirect "http://www.aaa.com/aaa/index.asp" case "www.bbb.com" Response.redirect "http://www.bbb.com/bbb/index.asp" case else Response.write "未知错误" end select %>