多域名同一空間的處理
兩個域名都是綁在同一個空間上,但會跳到不同的目錄,不是在IIS設置上實現的,只是一小段ASP代碼
<%
'取得HTTP輸入的值並付值到HTOST中
host=lcase(request.servervariables("HTTP_HOST"))
'『開始條件跳轉
SELECT CASE host
' 如果HOST的值是euou.cn就選擇事件case euou.cn的命令
CASE euou.cn
' Below is the redirect command
response.redirect "bbs/"
CASE euou.li
response.redirect "inc/"
'We use CASE ELSE to fix any other requests
CASE ELSE
response.redirect "inc/"
END SELECT
%>