here is the code in the global.asax file
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
I can run it out of VS2008 without any issues but when i deploy the project to the server running IIS 6 it will not redirect the request.