I'm trying to fix redirections map on a client web site.
We used rewriteMap to map some redirection:
<rewriteMap name="My 301s">
<add key="/page1" value="/the-page-1/" />
<add key="/page2.html" value="/blablalvla" />
<add key="/category/culture/page3.html" value="/company/category/page3/" />
</rewriteMap>
and we used this rule
<rule name="Redirect rule1 for My 301s">
<match url=".*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{My 301s:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Redirect" url="{C:1}" appendQueryString="true" />
</rule>
if we try to access /page2.html it will redirect to /blablalvla and that's great, but it will return 404 error if we try to access /page2.html?some=value
Any idea how to fix that please.
Thanks