I am using UrlRewriter.NET for urlrewriting...how do i write the regular expression for
http://localhost:2731/CitiZenJourNalism/ViewProfile.aspx?uid=3eb5bf69-1047-4936-9885-8ff41d45646f
in this format <rewrite url = "~/ViewProfile/([^/.]+)" to="~/ViewProfile.aspx?uid=$1" />
what should be the rewrite url for http://localhost:2731/CitiZenJourNalism/Reports.aspx?cat=local&id=6
Any help is appretiated.
Sumit Kesarwani
03-Sep-2014try this:
<rewrite url="~/Reports/(.+)/(.+)" to="~/Reports.aspx?cat=$1&id=$2" />