Forum Moderators: open

Message Too Old, No Replies

In IIS, how to point HTTP to HTTPS?

How to automatically redirect?

         

craig1972

5:07 am on Dec 8, 2003 (gmt 0)

10+ Year Member



Hi,

I have a website which is running only as a secure site, on IIS server on Windows 2k server. E.g., the URL looks like --

[cactus.MYDOMAIN.com...]

Sometimes, users enter this right, except that they enter the HTTPS as HTTP (notice the missing S). We do not have anything at HTTP. So I want to "point" the HTTP to HTTPS.

How can I do this in IIS?

Thanks!

mattur

10:19 am on Dec 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Haven't done this myself, but to check if an asp page is being requested over SSL you can use code like:

<%
If Request.ServerVariables("HTTPS") = "off" Then
'redirect
End If
%>

HTH