用ASP实现多域名同一空间的处理实例

<%
    '取得HTTP输入的值并付值到HTOST中
    host=lcase(request.servervariables("HTTP_HOST"))
    ‘开始条件跳转
    SELECT CASE host
    ' 如果HOST的值是www.iswind.net就选择事件case"www.iswind.net"的命令
    CASE "www.iswind.net"
    ' Below is the redirect command
    response.redirect "bbs/"
    CASE "www.gdvet.com"
    response.redirect "inc/"
    'We use CASE ELSE to fix any other requests
    CASE ELSE
    response.redirect "inc/"
    END SELECT
    %>
posted @ 2008-08-30 09:55  酷越  阅读(178)  评论(0编辑  收藏  举报