I have a problem
I am currently using .asp to force a site from http to https. When the page is hit, it checks if the port is https. If not it rebuilds the page url and redirects to it. See below:
If Request.ServerVariables("SERVER_PORT") <> 443 Then 'this should only happen when coming from showpolicy page.
strSecureURL = "https://"
strSecureURL = "http://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & Request.ServerVariables("URL") strSecureURL= strSecureURL & "?" & request.servervariables("query_string")
The problem with this is that when i do the force from http to https when a form submission has been made i am losing the posted form data during the redirect.
Is it possible to configure IIS so that it knows which pages in a site must be run in SSL so it does the force itself without losing the posted form data?