I am rather struggling here. I've seen lots of answers for 80 to 443, but I'm really stuck with 8880 to 8443 for our control panel.
An example of a URL that needs redirecting: http://udweb01.servers.unreal-designs.co.uk:8880/admin/home?context=home
It should result to this: https://udweb01.servers.unreal-designs.co.uk:8443/admin/home?context=home
Note the http -> https and 8880 -> 8443.
The current rule we have is this:
<rule name="Force SSL (8443)" enabled="true" stopProcessing="true">
<match url="^(http://)?(.*):8880(/.*)?$" />
<action type="Redirect" url="https://{R:2}:8443{R:3}" appendQueryString="true" redirectType="Found" />
</rule>
But that doesn't seem to do anything. Any ideas?
Your rule should be like that:
In this rule you have condition
<add input="{HTTP_HOST}" pattern="^(.*):8880$" />
which will accet only http host with port 8880