asp空间放多个asp站
Posted on | 一月 2, 2010 | No Comments
第一个
<!–f Request.ServerVariables(“SERVER_NAME”)=”www.williamlong.info” then response.redirect “williamlong/index.htm” else response.redirect “index2.htm” end if–>
第二个
<!–elect case request.servervariables(“http_host”) case “www.williamlong.info” 1 Server.Transfer(“v3.htm”) case “www.williamlong.info” 1 Server.Transfer(“v3.htm”) case “www.moon-soft.com” 2 Server.Transfer(“i.htm”) case “www.moon-blog.com” 3 Server.Transfer(“moon-blog.htm”) …… 继续添加 …… end select–>
第三个
<!–f instr(Request.ServerVariables(“SERVER_NAME”),”www.williamlong.info”)>0 then
response.redirect “index.asp”
elseif instr(Request.ServerVariables(“SERVER_NAME”),”www.moon-soft.com”)>0 then
response.redirect “x/index.asp”
elseif instr(Request.ServerVariables(“SERVER_NAME”),”www.moon-blog.com”)>0 then
response.redirect “index3.asp”
end if
–>
第四个
<!–f Request.ServerVariables(“SERVER_NAME”)=”www.williamlong.info” then response.redirect “index1.asp” elseif Request.ServerVariables(“SERVER_NAME”)=”www.moon-soft.com” then response.redirect “index2.asp” elseif Request.ServerVariables(“SERVER_NAME”)=”www.moon-blog.com” then response.redirect “index3.asp” end if–>
第五个
<!–f Request.ServerVariables(“SERVER_NAME”)=”www.williamlong.info” then Server.Transfer(“williamlong.htm”) elseif Request.ServerVariables(“SERVER_NAME”)=”www.moon-soft.com” then Server.Transfer(“moon.htm”) elseif Request.ServerVariables(“SERVER_NAME”)=”www.moon-blog.com” then Server.Transfer(“moon-blog.htm”) else Server.Transfer(“other.htm”) end if–>
相关文章:
- asp.net的几种页面传值方法
- 建立HttpHandler并在web应用程序中注册
- samba4_smbclient_linux_winnt_share_file
- web.config的讲解
- WordPress 永久链接以及在各种平台上的实现方法
评论|Comments
留言|Leave a Reply
![如果您自认为是一位忠实的Silverlight-Fans,那么请将此标志放到您的博客中成为一名真正的[银光使者]](http://images.cnblogs.com/cnblogs_com/alamiye010/Silverlighter1.jpg)