Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stephane Mathis 9 posts 29 karma points
    Sep 02, 2013 @ 13:55
    Stephane Mathis
    0

    Url Rewriting and UrlEncode

    Hi,

    I'm trying to have something like /faq/?thematique=xxxxxxx to be displayed as /faq/xxxxxx.

    Here is my rule in the UrlRewriting.config file :

        <add name="urlRewriteFaq"
          virtualUrl="^~/faq/(.*)"
          rewriteUrlParameter="ExcludeFromClientQueryString"
          destinationUrl="~/faq/?thematique=$1"
          ignoreCase="true" />

    It is working if "xxxxx" is just a word, but if there is a space which is encoded as a '+', then I'm getting a 404 error for /faq/xxxx+xxx. The regex should get everything (.*), so I d'ont know how I can resolve this issue.

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies