手机
当前位置:查字典教程网 >编程开发 >ASP教程 >多域名一网站时如果返回最原来的域名
多域名一网站时如果返回最原来的域名
摘要:我最近的应用复制代码代码如下:

<%

host=lcase(request.servervariables("HTTP_HOST"))

SELECTCASEhost

JustchangetheCASEtoyourdomains

CASE"www.designbliss.com.au"

Belowistheredirectcommand

response.redirect"au/"

CASE"designbliss.com.au"

response.redirect"au/"

CASE"e.free-bliss.com"

response.redirect"front.asp"

CASE"www.website-design-australia.com"

response.redirect"wda/"

CASE"website-design-australia.com"

response.redirect"wda/"

WeuseCASEELSEtofixanyotherrequests

CASEELSE

response.redirect"front.asp"

ENDSELECT

%>

我最近的应用

复制代码 代码如下:

<%

host=lcase(request.servervariables("HTTP_HOST"))

SELECTCASEhost

CASE"www.huaihaiw.com"

response.redirect"index2.asp"

CASE"xx.huaihai.tv"

response.redirect"index1.asp"

CASEELSE

response.redirect"index2.asp"

ENDSELECT

%>

【多域名一网站时如果返回最原来的域名】相关文章:

ASP中FSO对象对IIS WEB服务器数据安全的威胁及对策

NextRecordset 和 GetRows 双簧合奏

ASP编程入门进阶(六):Cookies讲座

学习ASP和编程的28个观点

网站制作ASP语言的特点与功能

为什么在存储过程中用OLEDB方式不能返回记录集

js+asp总结

使用ASP启动/停止指定WEB站点

IIS服务器与web.config配置优化指南

多域名绑定到一个空间访问不同首页的技巧

精品推荐
分类导航