17 April 2002

<%@ language = vbscript %>
<% option explicit
' redirect http to https only if current page is non-ssl

if request.servervariables("server_port_secure") = "0" then %>

<html>
<head>
<meta http-equiv="refresh" content="0; url=<%= "https://"&request.servervariables("http_host") %>">
</head>
<body>
rerouting to ssl-enabled pages. a moment please ...
</body>
</html>

<% else %>

this is an ssl page

<% end if %>

No comments: