Im stummped. Ok Ive figured out how to take an http://a and redirect it tohttps://a.domain.com
Even if I redirect something like https://a.domain.com tohttps://a.domain.com/something it works
What I cant figure out is how to do this
https://a redirect to https://a.domain.com When I do this I initially get a Cert name mismatch error however once I click continue the error is gone.
So I have wildcard internal *.domain.com cert applied to the Defualt web site and works fine in every instance when the url has the fqdn. I was trying to set it up so that if you access the site using the short name, IIS would rewrite/redirect it to the same but the fqdn name. It seems to only work though when not initally SSL.
Basically there are a few sites. I created a custom downtime message for each one on a separate server running IIS. (2012) so I wouldnt have to modify or onvolve anyone else on each of the prod IIS Servers. The few sites have short TTLs in DNS. The thought was before downtime to flip DNS name for Server B over to Server A. Then the above process would kick in. Works great only when not SSL initally or when SSL FQDN.
But I cant get it when going from https://a redirect tohttps://a.domain.com
Does this make sense?
<rewrite><rules><clear /><rule name="Hostname to FQDN" stopProcessing="true"><match url=".*" /><conditions logicalGrouping="MatchAny"><add input="{HTTP_HOST}" pattern="management" /><add input="{HTTP_HOST}" pattern="3m([^.]+)" /><add input="{HTTP_HOST}" pattern="360App" /></conditions><action type="Redirect" url="https://ServerA.domain.com/{C:0}" redirectType="Temporary" /></rules></rewrite>