Automatic building. Implement the virtual secondary directory

xiaoxiao2021-03-06  76

I used to write a station system that automatically generates websites. But I have to write one should do not automatically generate, but to do: http://www.cnsnc.cn/ username so I think a user builds a directory. But I think If you are www.In I want to build a w directory. So I use IIS's 404 error and the analysis of the error message to write an automatic steering code. First put all 404 errors in IIS. Record: URL: /Website.asp?WebName= $ V is then built under the root of the site: Website.asp '----------------- The content is as follows -------- ----------- '<% @ codepage = "936"%> <% WebName = Trim "WebName")) WebName = Right (WebName, WEBNAME) -INSTR (WebName, "80") - 2) SET RS = Conn.execute ("Select ID from qyml where user = '" & webname & "") IF rs.eof the response.write ("File is not found!") Else Response.Redirect ("/ show / index.asp? id =" & = ")) End IF%> '------- ----------------------------------------- 'OK, fully realized, do not build N Multiple directory.

转载请注明原文地址:https://www.9cbs.com/read-93153.html

New Post(0)