I want to rewrite url by removing query string question mark and put a slash instead
Used this to remove .aspx
so my urllooks like this http://localhost:10089/Coding
<rewrite>
<rules>
<rule name="Hide .aspx ext">
<match url="^(.*)$" ignoreCase="true" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}.aspx" matchType="IsFile" />
</conditions>
<action type="Rewrite" url="{R:0}.aspx" />
</rule>
<rule name="Redirecting .aspx ext" stopProcessing="true">
<match url="^(.*).aspx$" />
<conditions logicalGrouping="MatchAny">
<add input="{URL}" pattern="(.*).aspx$" />
</conditions>
<action type="Redirect" url="{R:1}" />
</rule>
</rules>
</rewrite>
i want to remove http://localhost:10089/Read?ID=1
i want to remove query string and make url like
http://localhost:10089/Read/ID/1
i tried this
<rule name="Rewrite for Read" stopProcessing="true">
<match url="^Read/([^/+])?$" />
<action type="Rewrite" url="Read.aspx?ID={R:1}" />
</rule>
But not working how do i achieve this