开发者

using intelligencia url re-writer in a classic asp webapp

I have a classic asp webapp that I need to implement url re-writing in. I've used the intelligencia url re-writer in an asp.net application before , so my current trail of thought is to create a new asp.net application, add the url re-writing component to it and then add the classic asp application over the top. It's hosted in shared webspace so I have no ability to add isapi components to the webserver.

Is this the right way to go about it? What configuration changes would I need to make to get the classic asp and asp.net to sit together happly?

开发者_如何转开发

Any advice would be very appreciated.


You might be able to use a 404.asp to do this. I'm running HELM on IIS6 and can use my 404.asp like this:

URLPath = LCase(Replace(Request.Servervariables("QUERY_STRING"), "404;http://" & Request.ServerVariables("SERVER_NAME") & ":" & Request.Servervariables("SERVER_PORT"), ""))

If URLPath = "/lalala" Then
    Response.Status="200 OK"
    Response.Write "La la la!"
Else
    Response.Status="404 Not Found"
    Response.Write "File not found."
End If
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜