Bind one domain name to the same space
Copy codeThe Code is as follows: <%
CheckDomain
Sub CheckDomain ()
Dim sDomain
SDomain = Request. ServerVariables ("HTTP_HOST ")
If Instr (sDomain, "a.xxx.com")> 0 then Response. Redirect "/"
End Sub
%>
Bind two more domain names in the same spaceCopy codeThe Code is as follows: <%
CheckDomain
Sub CheckDomain ()
Dim sDomain
SDomain = Request. ServerVariables ("HTTP_HOST ")
If Instr (sDomain, "a.xxx.com")> 0 then
Response. Redirect "/"
Elseif Instr (sDomain, "B .xxx.com")> 0 then
Response. Redirect "B /"
End If
End Sub
%>
Bind three more domain names in the same spaceCopy codeThe Code is as follows: <%
CheckDomain
Sub CheckDomain ()
Dim sDomain
SDomain = Request. ServerVariables ("HTTP_HOST ")
If Instr (sDomain, "a.xxx.com")> 0 then
Response. Redirect "/"
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
%>