Copied to clipboard

Flag this post as spam?

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


  • umbracocool 108 posts 197 karma points
    Dec 21, 2012 @ 08:30
    umbracocool
    0

    URL Rewriting with Dynamic Url and GET variables

    Hello friends, I am making a website, in which, using friendly url and use GET variables. For example I have this

    http://mysite.com/news/tax-reform?member=Dereck&profession=lawyer

    Then I want to convert this url:

    http://mysite.com/news/tax-reform/Dereck/lawyer

    This is just an example of what I want to accomplish. Is it possible?

    I have this code:

    <add name="tax" 
    virtualUrl="^~/(.*)/(.*)$" 
    rewriteUrlParameter="ExcludeFromClientQueryString"
    destinationUrl="~/?member=$1&amp;profession=$2" 
    ignoreCase="true" />  

    :( But it does not work. Help me please friends!.

    Thank you guys!

Please Sign in or register to post replies

Write your reply to:

Draft