复制代码 代码如下:
<%
checkdomain
sub checkdomain()
dim sdomain
sdomain = request.servervariables("http_host")
if instr(sdomain,"a.xxx.com")>0 then response.redirect "a/"
end sub
%>
同一空间多绑二个域名
复制代码 代码如下:
<%
checkdomain
sub checkdomain()
dim sdomain
sdomain = request.servervariables("http_host")
if instr(sdomain,"a.xxx.com")>0 then
response.redirect "a/"
elseif instr(sdomain,"b.xxx.com")>0 then
response.redirect "b/"
end if
end sub
%>
同一空间多绑三个域名
复制代码 代码如下:
<%
checkdomain
sub checkdomain()
dim sdomain
sdomain = request.servervariables("http_host")
if instr(sdomain,"a.xxx.com")>0 then
response.redirect "a/"
elseif instr(sdomain,"b.xxx.com")>0 then
response.redirect "b/"
elseif instr(sdomain,"c.xxx.com")>0 then
response.redirect "c/"
end if
end sub
%>
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!