Copied to clipboard

Flag this post as spam?

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


  • Lazau Florin 74 posts 210 karma points
    Oct 04, 2016 @ 12:01
    Lazau Florin
    0

    Url Rewrite with query string

    Hi all,

    I try to do some redirects using UrlRewriting.config .

    i have to redirect ~/page.aspx?pid=231 to /partner-with-us/ .

    Unfortunately this is not working, and this because i have the query string. I got a strange error "Sequence contains no elements"

    Can someone help me with this?

    Thanks

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Oct 04, 2016 @ 12:47
    Alex Skrypnyk
    0

    Hi Lazau,

    How did you try to do redirect?

    What are you using?

    Thanks,

    Alex

  • Lazau Florin 74 posts 210 karma points
    Oct 04, 2016 @ 12:50
    Lazau Florin
    0

    Hi Alex,

    Thanks for writing. I'am using UrlRewriting.config, i think that it comes with Umbraco. Finally I've succeeded in this way:

     <add name="bb" virtualUrl="^~/page.aspx(.*)231$" rewriteUrlParameter="IncludeQueryStringForRewrite" redirect="Application" redirectMode="Permanent" destinationUrl="~/partner-with-us/" ignoreCase="true" />
    

    Florin

  • 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