I have 2 sites with name like https://www.site1.com and https://www.site1abc.com. I am trying to add Rewrite rule for site1.com only.
<rule name="Custom Rule" stopProcessing="true">
<match url="(.*[^/])$" />
<conditions>
<add input="{StaticRedirectsPatient:{REQUEST_URI}}"
pattern="^(https:\/\/(.*).)?site1.com/(.*)" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{C:0}" />
</rule>
The above is getting applied to site1abc also. How to apply only for site1.com. Is there way to check rule should get applied to site1.com and not to site1abc.com keeping in mind both contain the keyword site1.