Copied to clipboard

Flag this post as spam?

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


  • nickornotto 317 posts 679 karma points
    Dec 09, 2013 @ 16:58
    nickornotto
    0

    umbraco urlrewriting final redirect

    I have added some redirection to my new website:

    <add name="festival" redirect="Application" redirectMode="Permanent" ignoreCase="true"
        virtualUrl="^~/festival/(.*)"   destinationUrl="~/festivals/$1" rewriteUrlParameter="IncludeQueryStringForRewrite" />
    
    <add name="festivalOther" redirect="Application" redirectMode="Permanent" ignoreCase="true"
        virtualUrl="^~/festival/(.*)"   destinationUrl="~/festivals" rewriteUrlParameter="IncludeQueryStringForRewrite" />
    

    The first one is working, the second one - is not.

    Basically what I need is to redirect all links which match the first expression but if the destination url doesn't exist after first match I want to redirect using the second rule.

    Is it achievable? It httpd.ini it would work

    Thanks

  • 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