Fist and foremost, due to limitations imposed by our service provider I can only use 1 IP address for both 80 and 443, so multiple IP address configuration is simply not an option. So, I have a server 2022 with IIS 10. I would like to redirect a website: https://www.gmcomputers.co.za to https://www.gmcomputers.co.za:4443 without having to stipulate the :4443 part. I found a possible URLRewrite rule that looks like it should work, however it does not currently. I keep getting "the webpage took too long to respond. the rule is as follows (with my modifications inserted):
<rewrite>
<rules>
<rule name="Redirect HTTPS Port" stopProcessing="true">
<match url="www.gmcomputers.co.za" />
<conditions trackAllCaptures="true">
<add input="{URL}" pattern="www.gmcomputers.co.za" />
<add input="{SERVER_PORT}" pattern="443" />
</conditions>
<action type="Redirect" url="https://www.gmcomputers.co.za:4443" />
</rule>
</rules>
</rewrite>
Obviously, if I type the full URL https://www.gmcomputers.co.za:4443 it works perfectly. Could someone please advise where I am going wrong with my code? Thanking you.