手机
当前位置:查字典教程网 >编程开发 >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 简单数据库连接类

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

做文章系统时, 如何让长篇的文章自动换行

常见的ASP获取时间操作的代码

硬盘文件搜索代码(ASP类)

javascript asp教程第十二课---session对象

改进一下asp自带的formatNumber函数

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

NextRecordset 和 GetRows 双簧合奏

关于网站文件自动备份程序的一点思考

精品推荐
分类导航