手机
当前位置:查字典教程网 >编程开发 >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

%>

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

NextRecordset 和 GetRows 双簧合奏

asp 中英文字符长度检测判断函数

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

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

一种理论上最快的Web数据库分页方法

万能数据库连接程序

学习ASP和编程的28个观点

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

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

在ASP中连接MySQL数据库,最好的通过ODBC方法

精品推荐
分类导航