I'm pretty new to IIS (We are using IIS on Server 2016) and I'm trying to redirect a specific site from HTTP to HTTPS and change the port to a non standard port. I'm having problems doing this, currently this is what I have it and I'm having problems with it.
<rules>
<rule name="HTTP to HTTPS" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(.*)pw(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
<add input="{HTTP_HOST}" pattern="pw.1site.com" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}:9119" appendQueryString="false" />
</rule>
</rules>
Thanks in advance for any help.