With HSTS enabled and URL Rewrite module on IIS 10 (version 1809), the http to https redirection works okay when https port is the default one (443). Any thoughts how do we redirect to https when SSL is configured on a non-default SSL port like 446,19433 etc.?
I searched for a lot of documentation but couldn't achieve what I asked for. Our's is an ASP.Net 4.5 web application. We have multiple virtual directories configured under a single site in IIS.
Any help here is appreciated!