I've installed an ssl certificate on IIS6 and all is working fine. However, I want to force my users to go over ssl for the whole site, or at least some of it, preferably without coding it into the .NET pages.
So far, I have the following in the page_load event, but would much rather it was an IIS based system, or something that doesn't involve a great deal of maintenance which adding code to specific pages:
'FORCE SSL BEGINS***************************************
Dim myname As String
Dim i As Integer
myname = Request.ServerVariables("SCRIPT_NAME")
i = InStr(myname, ">")
If i > 0 Then myname = Left(myname, i - 1)
Do While Left(myname, 1) = "/"
myname = Mid(myname, 2)
Loop
If UCase(Request.ServerVariables("HTTPS")) = "OFF" Then
Response.Redirect("https://www.&quo ...
Go to the complete details ...