Copied to clipboard

Flag this post as spam?

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


  • Doogie Talons 183 posts 318 karma points
    Jul 25, 2011 @ 14:17
    Doogie Talons
    0

    ... another 301 question.

    I am using umbraco 4.5.2

    I thought it would be this simple to do a custom 301 for a page called..

    http://www.floralhaven.co.uk/page.html?id=15 ;

    to redirect to 

    http://www.floralhaven.co.uk/weddings.aspx

    Any ideas ?

    within the UrlRewriting.config

    <add name="Weddings"

        virtualUrl="/page.html?id=15"

        rewriteUrlParameter="ExcludeFromClientQueryString"

        redirect ="Application"

        redirectMode ="Permanent"

        destinationUrl="/weddings.aspx"

        ignoreCase="true" />

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jul 25, 2011 @ 15:19
    Stefan Kip
    0

    Try ditching the leading slash (/):

    <add name="Weddings"

        virtualUrl="page.html?id=15"

        rewriteUrlParameter="ExcludeFromClientQueryString"

        redirect ="Application"

        redirectMode ="Permanent"

        destinationUrl="weddings.aspx"

        ignoreCase="true" />

  • Doogie Talons 183 posts 318 karma points
    Jul 25, 2011 @ 15:51
    Doogie Talons
    0

    Hi kipusoep, yeah I tried that I am sure it's to do with the querystring... but don't know how to get over it.

    I have done dozens of pages in the url rewrite..

    Such as this one where the page existed that pointed to a category which worked fine...

    <add name="handties"

        virtualUrl="/hand-tied-bouquets-c-68.html"

        rewriteUrlParameter="IncludeQueryStringForRewrite"

        redirect ="Application"

        redirectMode ="Permanent"

        destinationUrl="/flowers/designer-handties.aspx"

        ignoreCase="true" />

    But the pages which had a querystring refuse to redirect.

    Someone knows why...

  • 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