Re: urgent: URL rewriting not supported

  •  04-07-2009, 1:58 PM

    Re: urgent: URL rewriting not supported

    Hi,

    The current version is 100% compatible with Microsoft's UrlRewriter samples.
    http://msdn.microsoft.com/en-us/library/ms972974.aspx

    If the uploader do not fit for your case , there are some reason:

    1. The url rewriter is not 100% compatible , because it use Request.RawUrl (like the http://urlrewriter.net/) .
       That means, as a url rewriter component , it doen't consider the url is rewrited by other components .
       It should use Request.Path or PathAndQuery instead the Request.RawUrl .

    2. The url rewriter do not split the querystring for matching the rules. And the rules is not matched for the ?xxx=yyy conditions , for example , RegExp rules end with '$' and do not allow any querystring.

    for the #1 , I suggest change the RawUrl to PathAndQuery and compile the url rewriter again.
    for the #2 , What I suggest is that change the '$' to ($|(\?.*)) , that is the best way for the compability issue.

    Regards,
    Terry

View Complete Thread