I have yet another in my series of stupid questions:
A user types in "HTTP://www.somedomain.com
" and when it fires I want the user to be redirected to HTTPS of the same domain. So no matter how many times a user tries to access port 80 (HTTP), they can't and are redirected to port 443 or whatever the SSL HTTPS is.
I found this code below but it doesn't work...
Save this as: ForceSSL.inc
If Request.ServerVariables("SERVER_PORT")=80 Then
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & Request.ServerVariables("URL")
AND CALL THIS ON YOUR PAGE: