Copied to clipboard

Flag this post as spam?

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


  • nickornotto 403 posts 907 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

Please Sign in or register to post replies

Write your reply to:

Draft