CQ-CSER

计算机爱好者

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–>

相关文章:

  1. asp.net的几种页面传值方法
  2. 建立HttpHandler并在web应用程序中注册
  3. samba4_smbclient_linux_winnt_share_file
  4. web.config的讲解
  5. WordPress 永久链接以及在各种平台上的实现方法

评论|Comments

留言|Leave a Reply





  • Archives

  • SUNSHINE

  • About

    本博客采用创作共用版权协议,要求署名、非商业用途和保持一致. 转载本博客内容也遵循“署名-非商业用途-保持一致”的创作共用协议.

    订阅

    Search

    Admin