Hi @Pedro-A
You can try to set pattern
(the rule pattern is used to specify either the regular expression or a wildcard pattern that is used to match URL strings.) to match only one domain, usually when redirecting from http to https, we always use (.*)
to match the URL string, (.*)
means to match any string, you can set the parameter to match only one domain.
You can refer to this rule:
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="^one domain$" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.