M
McKirahan
I have an ASP site, an SSL certificate, and an {Order page}.
I want to use "https" for the {Order page} and "http" for all others.
Each page "includes" a common ".asp" file which detects the
current protocol and page via the Request.ServerVariables():
"SERVER_PORT_SECURE" and "SCRIPT_NAME", respectively.
( If "SERVER_PORT_SECURE" = 1 Then "https" else http". )
If the {Order page} is requested then "https" is used
otherwise "http" is used. The pseudo-logic is:
If {Order page} Then
If Not {https} Then
Response.Redirect( {https} & {Order page} )
End If
Else
If {https} Then
Response.Redirect( {http} & {Other pages} )
End If
End If
Is this the best approach? Are there other ways to do it?
Thanks in advance.
I want to use "https" for the {Order page} and "http" for all others.
Each page "includes" a common ".asp" file which detects the
current protocol and page via the Request.ServerVariables():
"SERVER_PORT_SECURE" and "SCRIPT_NAME", respectively.
( If "SERVER_PORT_SECURE" = 1 Then "https" else http". )
If the {Order page} is requested then "https" is used
otherwise "http" is used. The pseudo-logic is:
If {Order page} Then
If Not {https} Then
Response.Redirect( {https} & {Order page} )
End If
Else
If {https} Then
Response.Redirect( {http} & {Other pages} )
End If
End If
Is this the best approach? Are there other ways to do it?
Thanks in advance.