asp.net - Intelligencia UrlRewriter.NET not working properly on IIS 6? -


I have a problem getting the following syntax to work:

  & Lt; Rewriter & gt; & Lt ;! - It's nothing - & gt; & Lt; If url = "to rewrite the worksheetwork \ .aspx" = "/ default.aspx" /> & Lt ;! - This redirects correctly - & gt; & Lt; Redirect = url = "whywontthiswork \ .aspx" = "/ default.aspx" /> & Lt; / Rewriter & gt; As it has been said, the first rule does nothing, despite this I try. On the answer to that page request, the X-Power-by-field always says "ASP.Net", however, the second rewrite rule always works, and in response to that request, X-power-by-field "ASP.Net, URLRER 2.0. " is.  

I believe that the IIS is properly configured as it & lt; Redirect / & gt; is to correctly handle the request. The issue is that I have no idea why the first rewrite rule does not execute.

I have tried to search the documentation, but at this time, if offline or in service now Any ideas?

OK, sorry to answer your own question, but I have to post it Immediately solved. I most likely have a different version of UrlRewriter.NET, when these rules were created. To update syntax in the following, resolve this problem:

  & lt; If url = "whywontthiswork \ .aspx" & gt; & Lt; Rewrite url = "whywontthiswork \ .aspx" = "/ default.aspx" /> & Lt; / If & gt;  

Edit:
I was able to confirm that our production environment intelligencia The URLRER was using version 1.7.0 but the assembly I was using was 2.0.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -