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.
localhost/profile.aspx?inst_id=3052&course_id=&course=true
Courses/3052/Info/True
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}&course_id={R:2}&course={R:3}" />
</rule>
But Second Url :
localhost/profile.aspx?inst_id=3052&course_id=&photos=true
Photo/3052/Images/True
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}&admission={R:2}&admission={R:3}" />
</rule>
please tell me how to do for both
thanks in advanced