Url Rewrite Rule not working with multiple parameters in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago

Dear Sir I Have More than one url With Querystrings And I Want to Url Rewrite For Such A Standared Format Application. 

So I Make Many Rules For Such Url Rewriting Dynamic.



its Working Good.

<rule name="rule3" stopProcessing="true">
    <match url="Courses/([0-9]+)/([_0-9a-z-]+)/([_0-9a-z-]+)" />
    <action type="Rewrite" url="profile.aspx?inst_id={R:1}&amp;course_id={R:2}&amp;course={R:3}" />

But Second Url :



this is not working 

<rule name="rule4" stopProcessing="true">
    <match url="Photo/([0-9]+)/([_0-9a-z-]+)/([_0-9a-z-]+)" />
    <action type="Rewrite" url="profile.aspx?inst_id={R:1}&amp;admission={R:2}&amp;admission={R:3}" />

please tell me how to do for both

thanks in advanced