1
<%
2
'取得HTTP输入的值并付值到HTOST中
3
host=lcase(request.servervariables("HTTP_HOST"))
4
SELECT CASE host
5
' 如果HOST的值是www.livebaby.cn就选择事件case www.livebaby.cn 的命令
6
CASE "blog.livebaby.cn"
7
' Below is the redirect command
8
response.redirect "blog/"
9
CASE "meil.livebaby.cn"
10
' Below is the redirect command
11
response.redirect "u/meil"
12
CASE ELSE
13
response.redirect "index.shtml"
14
END SELECT
15
%>
16
17

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17
