I am trying to use Microsoft Url Rewrite in one application I am working on and for testing purposes for example I have this url: http://localhost:65532/MyWebsite/Page.aspx?PID=16483
which will give me the page I want it, everything looks good there but when I am trying to do the url rewrite with this rule:
<rule name="Page View" enabled="true" stopProcessing="true">
<match url="actor/^([a-zA-Z0-9_\-+]+)/?$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="Page.aspx?N={R:1}&PID={R:2}" />
</rule>
And trying to open pages such as:
http://localhost:65532/MyWebsite/actor/bruce-willis/C-62
I am getting an error that the page cannot be found, how do you think I should tackle the rule in my case? Everything is set in both IIS and the page. Thanks in advance, Laziale