When a user logs in the following document is set as the first document to run if one is not specified. Normally I name it
defaults.asp
This method is only used if the site has an SSL certificate installed. It redirects the user to the https:// version of the
website.
If someone types in http://mywebsite.com or http://mywebsite.com/webvirdir they will be directed to
However if someone types http://mywebsite.com/webvirdir/default.htm I can't figure out a way to do the redirection because
it's not calling the default document defaults.asp.
I don't know the actual right way to always redirect to the https:// version of the site if the user types in any combination
using http:// something.
Bob Mechler
defaults.asp
This method is only used if the site has an SSL certificate installed. It redirects the user to the https:// version of the
website.
If someone types in http://mywebsite.com or http://mywebsite.com/webvirdir they will be directed to
However if someone types http://mywebsite.com/webvirdir/default.htm I can't figure out a way to do the redirection because
it's not calling the default document defaults.asp.
I don't know the actual right way to always redirect to the https:// version of the site if the user types in any combination
using http:// something.
Code:
<html> <head> <title></title> <% Dim bSSLOn Dim sURL bSSLOn = (Request.ServerVariables("HTTPS") = "off") if bSSLOn then sURL = "https://mywebsite.com/webvirdir/default.htm" Response.Redirect (sURL ) end if %> </head> <body> </body> </html>
Comment