<%
'取得HTTP輸入的值並付值到HTOST中
host=lcase(request.servervariables("HTTP_HOST"))
'開始條件跳轉
SELECT CASE host
' 如果HOST的值是www.abc0.com就選擇事件case"www.abc0.com"的命令
CASE "www.abc0.com"
' Below is the redirect command
response.redirect "index_abc0.asp"
CASE "www.abc1.com"
' Below is the redirect command
response.redirect "index_abc1.asp"
CASE "www.abc2.com"
' Below is the redirect command
response.redirect "index_abc2.asp"
' 繼續添加...
CASE "www.abcn.com"
' Below is the redirect command
response.redirect "index_abcn.asp"
'We use CASE ELSE to fix any other requests
CASE ELSE
response.redirect "default.asp"
END SELECT
%>