Redirect HTTP connection to HTTPS
We've all experienced it with setting up an Exchange Server with Outlook Web Access (OWA). Users are connecting with HTTP while they should use HTTPS. Normally they would get an 403.4 error when connecting with HTTP, telling them to use HTTPS, which they have to type in manually. Wouldn't it be easier if they were redirected to HTTPS? With IIS 6 you can do just that! Follow these steps:<% If Request.ServerVariables("SERVER_PORT")=80 Then
Dim strSecureURL strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & "/exchange"
Response.Redirect strSecureURL
End If %>Users will now be redirected to HTTPS if they mistakenly type HTTP in the URL!









I found this article filled in the gaps I was missing to get it working properly: http://support.microsoft.com/default.asp...
Clowntrigger - 08 12 06 - 14:32
Great! Thank you.
Maarten - 08 12 06 - 15:10