Copied to clipboard

Flag this post as spam?

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


  • Chad Rosenthal 272 posts 474 karma points
    Mar 12, 2013 @ 14:33
    Chad Rosenthal
    0

    UrlRewrite in v6.0.2

    Trying to use the urlrewriting.config file to create a bunch of redirects to an external url. The problem is that I can't get it to work. I copied from 4.7.2 an external redirect that I thought should work, but doesn't seem to work in my v6.

    I'm using the following xml:

            <add name="apply"
                virtualUrl="^~/apply2/apply2(.*)"
                rewriteUrlParameter="ExcludeFromClientQueryString"
                destinationUrl="http://www.urlhere.com"
                ignoreCase="true"
                redirect="Domain"
                redirectMode="Permanent" />

     

    Right now, this is just giving me a page not found. If I change it to an internal url, it works....so I know the virtualUrl is working properly.

            <add name="apply"
                virtualUrl="^~/apply2/apply2(.*)"
                rewriteUrlParameter="ExcludeFromClientQueryString"
                destinationUrl="~/"
                ignoreCase="true"
                redirect="Application"
                redirectMode="Permanent" />

     

    So I can do an external redirect? Or will I need to create a template that handles the external redirect for me?

Please Sign in or register to post replies

Write your reply to:

Draft