|
来源:网络转载 编辑:liuhui 时间:2006-9-6 13:51:54 |
|
第一步:创建转向控制页面 创建网站默认的首页文件(通常为"index.asp"或"default.asp")如下:
<% '取得HTTP输入的值并付值到HTOST中 host=lcase(request.servervariables("HTTP_HOST")) '开始条件跳转 SELECT CASE host ' 如果HOST的值是就选择事件case""的命令 CASE "" ' Below is the redirect command response.redirect "index_abc0.asp" CASE "" ' Below is the redirect command response.redirect "index_abc1.asp" CASE "" ' Below is the redirect command response.redirect "index_abc2.asp" ' 继续添加... CASE "" ' 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 %>
第二步:创建相应的被转向文件 创建"index_abc0.asp"—"index_abcN.asp",作为各个网站的首页。
第三步:将多个域名的IP地址解析到同一个网站空间 例如:将""—""的IP地址全部解析到""的WEB空间上。
第四步:设置网站的WEB服务 设置WEB服务的别名为:" ...... "(注意:别名之前用一个空格分开)
现在你就可以使用象""、……、""这类顶级的网址来访问同一个WEB空间,而得到各不相同的首页面了 |
 |
|
 |
|