可以实现。
js写麻烦,你慢慢测试,就是你的思路。asp方便些:在index.asp页面中:url = request.servervariables("server_name")
if url="www.abc.com" then
    response.redirect "index1.asp"
elseif url="www.def.com" then
    response.redirect "index2.asp"
end if我常用这样的方法。可行。