Copied to clipboard

Flag this post as spam?

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


  • Rick 92 posts 278 karma points
    Mar 13, 2013 @ 20:54
    Rick
    0

    Rewrite Rule in UrlRewriting.config

    Hi,

    I have searched high and low for the answer to this but can't find it anyway and URL rewriting is not a great skill of mine!

    I have a site that is still accessible via the following URLs:

    www.domain.com/#!terms/cx1a
    www.domain.com/#!faq/c6fl
    www.domain.com/#!about_us/c3r5

    I'm trying to create rewrites in UrlRewriting.config that match the above URLs and take the user to a certain page (or even just the route of the site will do):

    i.e. www.domain.com/#!about_us/c3r5 ------> www.domain.com/about-us/

    I have the following but it just is not working!

    <add name="test"

            virtualUrl="~/#!about_us/c3r5"

            destinationUrl="/about-us/"

            ignoreCase="true"         

            redirectMode="Permanent"

            rewriteUrlParameter="ExcludeFromClientQueryString"

            redirect="Domain"/>

    Can anyone out there help please - I'm getting desperate! 

    Many thanks

Please Sign in or register to post replies

Write your reply to:

Draft