I have a requirement to redirect an incoming request to IIS with the following
You could try below rule to implement your requirement:
<rule name="rule1" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="test1.com" />
<add input="{REQUEST_URI}" pattern="/sites/testSite/library/(.*)" />
</conditions>
<action type="Redirect" url="https://test2.com/redirect/{C:1}" />
</rule>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.