Copied to clipboard

Flag this post as spam?

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


  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Mar 23, 2016 @ 15:31
    Michaël Vanbrabandt
    0

    UrlRewrite not working when url params are defined

    Hi,

    In the UrlRewriting.config file I have the folloing rule defined:

    <add name="redirectPage"
            redirectMode="Permanent"
            redirect="Domain"
            ignoreCase="true"
            rewriteUrlParameter="IncludeQueryStringForRewrite"
            virtualUrl="/NL/Services/Services.aspx?s=auto-onderdelen"
            destinationUrl="/auto-onderdelen/"
              />
    

    But this is not working. if I remove the ?s=auto-onderdelen part then it works.

    What am I missing here? I have serveral of these old pages that needs to get rewriten to the new urls.

    /Michael

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Mar 24, 2016 @ 07:44
    Dave Woestenborghs
    100

    Hi Michaël,

    I guess your are doing this using the UrlRewriting component in Umbraco.

    Maybe you can do the rewrite on IIS. The benefit is that it will be faster because it's done by the server instead of the software.

    Dave

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Mar 24, 2016 @ 08:03
    Michaël Vanbrabandt
    0

    @Dave,

    Thanks for the suggestion I will take a look at this.

    /Michael

  • 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