Copied to clipboard

Flag this post as spam?

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


  • Tom Maton 387 posts 660 karma points
    May 03, 2011 @ 10:12
    Tom Maton
    0

    Problems with getting URL Rewriting to rewrite

    Hi All,

    I've got an issue when trying to get my URL Rewriting to work correctly.

    I'm trying to get:

    /searchresults?speciality=testing&searchType=specialism&newSearch=true

    to

    /searchresults/testing/

     

    I currently have this in my URLWriting config file, but this jsut doesn't seem to work.

     

     

    <add name="specialismrewrite"
                   
        virtualUrl="^~/searchresults/(.*)/"
                   
        rewriteUrlParameter="ExcludeFromClientQueryString"
                   
       
    destinationUrl="~/searchresults?speciality=$1&amp;searchType=$2&amp;newSearch=$3"
                   
        ignoreCase="true" />

    Any help greatly appreciated.

    Thanks,

    Tom

     

Please Sign in or register to post replies

Write your reply to:

Draft