以下是引用 otbbs在2016/6/18 23:36:53的发言:
如果 要实现en.****.com 这样的二级域名怎么怎么弄呢?
根目录下的index.asp
if instr(Request.ServerVariables("SERVER_NAME"),"bbs.kesion.com")>0 then
response.redirect KS.GetDomain & "bbs/index.asp"
elseif instr(Request.ServerVariables("SERVER_NAME"),"news.kesion.com")>0 then
response.redirect KS.GetDomain & "news/"
elseif instr(Request.ServerVariables("SERVER_NAME"),"help.kesion.com")>0 then
response.redirect KS.GetDomain & "help/"
elseif instr(Request.ServerVariables("SERVER_NAME"),"en.kesion.com")>0 then '英文网站网址是二级域名response.redirect KS.GetDomain & "en/"end if
红色为添加