Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Step one: Create a Steering control page
Create the default home page file for the site (usually "index.asp" or "Default.asp") as follows:
<%
' Get the value of the HTTP input and pay the value to Htost
Host=lcase (Request.ServerVariables ("Http_host"))
' Start condition jump
SELECT Case Host
' If the value of the host is bbs.yidukongjian.cn, select the event case ' bbs.yidukongjian.cn ' command
Case "bbs.yidukongjian.cn"
' Below is the redirect command
Response.Redirect "Index_yidukongjian.asp"
Case "www.yidukongjian.cn"
' Below is the redirect command
Response.Redirect "Index_yidukongjian.asp"
Case "Www.abc2.com"
' Below is the redirect command
Response.Redirect "Index_abc2.asp"
' Continue to add ...
Case "Www.abcn.com"
' Below is the redirect command
Response.Redirect "Index_abcn.asp"
' We Use the case ELSE to the fix any other requests
Case ELSE
Response.Redirect "Default.asp"
End SELECT
%>
Step two: Create the corresponding turned file
Create "index_yidukongjian.asp"-"index_yidukongjian.cnN.asp" as the homepage of each website.
Step three: Resolve the IP address of multiple domain names to the same Web site space
For example, the IP address of the "bbs.yidukongjian.cn"-"www.abcN.com" is parsed into the "bbs.yidukongjian.cn" web space.
Step Fourth: Set up Web services for Web sites
Set the alias for the Web service to: "Www.abc1.com www.abc2.com www.abc3.com ... bbs.yidukongjian.cn" (Note: Separate a space before the alias)
Now you can use top-level URLs like "http://www.abc1.com" 、......、 "http://bbs.yidukongjian.cn" to access the same web space and get different first pages.