I want to redirect any traffic on my website based on the following rule:
https://www.example.com/abc->https://www.example.com/test1.aspx?c=abchttps://www.example.com/def->https://www.example.com/test1.aspx?c=def
I would like the subfolder to pass a query string, I have tried the following code but sadly had no success:
<rule name="Reditect1" stopProcessing="true">
<match url="^(.*)test.com/(.*)" />
<conditions>
<add input="{R:2}" pattern="^[a-zA-Z0-9_]*$" />
</conditions>
<action type="Redirect" url="/test1.aspx?c={C:0}" appendQueryString="true" />
</rule>