Created
April 20, 2011 17:00
-
-
Save calweb/931928 to your computer and use it in GitHub Desktop.
simply include on page you want to enforce ssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
If Request.ServerVariables("SERVER_PORT")=80 Then | |
Dim strForceSSL | |
strForceSSL = "https://" | |
strForceSSL = strForceSSL & Request.ServerVariables("SERVER_NAME") | |
strForceSSL = strForceSSL & Request.ServerVariables("URL") | |
Response.Redirect strForceSSL | |
End If | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment