"Nuevo" <im*********@gmail.comwrote in message
news:OG**************@TK2MSFTNGP02.phx.gbl...
>I am looking for some method to capture, into a variable, the entire URL of
an http request and redirect to SSL. For example, if a user opens a browser
and typed in
http://myserver.com/application/some...893bdgt0248991
I want to be able to redirect to an SSL connection
httpS://myserver.com/application/som...893bdgt0248991
Your help is appreciated.
This expression should get everything but the protocol from the original
URL, including the server's host name, file name and any directory info that
may have been included:
Url = Request.ServerVariables("SERVER_NAME") & _
Request.ServerVariables("URL") & "?" & _
Request.ServerVariables("QUERY_STRING")
Response.Redirect "https://" & Url
-Mark