这里是在Global.asax文件为什么IIS 6在与VS2008开发服务器协同工作时不会重定向我的请求?
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs)
If LCase(Request.Path).Contains("/dir/") Then
Dim M As Match = Regex.Match(Request.Path, "/dir/(\w*)/", RegexOptions.IgnoreCase)
If M.Success Then
Response.Redirect("https://[mystore]/select.aspx?route=" & M.Groups(1).Value)
End If
End If
End Sub
的代码,我可以运行它VS2008中没有任何问题,但是当我将项目部署到运行IIS服务器6也不会重定向请求。