多域名一网站时如果返回最原来的域名
2018-09-06 11:21
<%
host=lcase(request.servervariables(HTTP_HOST))
SELECTCASEhost
JustchangetheCASEtoyourdomains
CASE
Belowistheredirectcommand
response.redirectau/
response.redirectau/
response.redirectfront.asp
CASE
response.redirectwda/
CASEwebsite-design-australia.com
response.redirectwda/
WeuseCASEELSEtofixanyotherrequests
CASEELSE
response.redirectfront.asp
ENDSELECT
%>
我最近的应用
复制代码 代码如下:
<%
host=lcase(request.servervariables(HTTP_HOST))
SELECTCASEhost
CASE
response.redirectindex2.asp
response.redirectindex1.asp
CASEELSE
response.redirectindex2.asp
ENDSELECT
%>
上一篇:ASP常用源代码的总结(上)
下一篇:在asp中结合对象和组件