Bind multiple domain names to one space and access different homepages. Set up more subsites like this :)
The default homepage in the space (usually index.asp or default.asp) uses Request.ServerVariables("HTTP_HOST") to obtain the domain name used by the user when accessing it, and then uses Select to call different files. Response.Redirect or Server.Transfer can be used.
The code copy is as follows:
Dimcc_str_host_name
cc_str_host_name=LCase(Request.ServerVariables("HTTP_HOST"))
'Judge the host name and jump
SelectCasecc_str_host_name
Case"www.kuozhanming.com"
Server.Transfer"main.asp"
Case"www.suoxie.com"
Server.Transfer"main_2.asp"
CaseElse
Server.Transfer"main_3.asp"
EndSelect
Articles that may be of interest to you:
The method of binding multiple domain names in the same space to access different pages PHP codes under the same space to multiple binding Togo domain names under the same space. A new trick learned: single space binding multiple domain names to achieve speed up KesionCMSV4.0 Personal space secondary domain name turnover handler Two or more domain names share one space and can be accessed independently. Methods for binding domain names Germany 10GB free PHP space.htaccess Top-level domain name redirection binding space directory How to deploy javaweb projects to SSH framework online mall project under Linux SSH framework online mall project 19th battle order information cascade storage and page caching issues SSH framework online mall project 27th battle application domain name space and project deployment and release