Recommended: ASP error code description Error code Error message description ASP0100Out of memory Insufficient memory (required memory cannot be allocated ASP0101 Unexpected error Unexpected error ASP0102Expecting string input Missing string input ASP0103 Expe
The first method:
If you have an ASP space and you want to place multiple sites, these codes can help you:
| The following is the quoted content: The first <%if Request.ServerVariables(SERVER_NAME)=www.netbei.com then response.redirect zkj else response.redirect i.htm end if%> The second one <% select case request.servervariables(http_host) case www.netbei.com '1 Server.Transfer(v3.htm) case www.aspcn.net '2 Server.Transfer(i.htm) case www.netbei.cn '3 Server.Transfer(netbei.htm) ...Continue to add... end select %> Third <%if instr(Request.ServerVariables (SERVER_NAME),kekexi.com)>0 then response.redirect index.asp else if instr(Request.ServerVariables (SERVER_NAME),4668.com)>0 then response.redirect x/index.asp else if instr(Request.ServerVariables (SERVER_NAME),web315.com)>0 thenr esponse.redirect index3.asp end if end if end if%> The fourth <%if Request.ServerVariables(SERVER_NAME)=www.netbei.com then response.redirect index1.asp else if Request.ServerVariables(SERVER_NAME)=www.ce.org.cn then response.redirect index2.asp else if Request.ServerVariables(SERVER_NAME)=www.163.com then response.redirect index3.asp end if end if end if%> |
The following is the quoted content: The second method: <% dim domainname,result domainname=Request.ServerVariables(SERVER_NAME) result=right(domainname,12) if result=my.netbei.com then %> <!--#include file=mynetbei.asp --> <% Elseif result=rtisancn.com then %> <!--#include file=artisan.asp --> <% Elseif result=gn.netbei.com then %> <!--#include file=web.asp --> <% Elseif result=.forwest.com then %> <!--#include file=forwest_com.asp --> <% Else %> <!--#include file=netbei.asp --> <% End if %> |
Please contact this site and attach your name in time. Contact email: CuoXIn#vip.qq.com (change # to @).
Share: ASP basic tutorial: ASP program handles cookies Cookies are often used to identify users. Example: The following is the referenced content: <%dim numvisitsresponse.cookies(NumVisits).Expires=da