Switch Customer Registration page in HTTPS (For VPASP 6.50 and 7.00)

Switch Customer Registration page in HTTPS (For VPASP 6.50 and 7.00)

If you have changed the shop$config.asp file and updated Xssl to use HTTPS url of your site and changed xsslshopcustomer config to Yes, and you still see that the customer registration page (shopcustregister.asp) is still not in HTTPS, then you can follow these steps below to make it displays as HTTPS:

1. Open the file shopcustregister.asp using notepad or text editor.

2. Locate this code :

<!--#include file="shopmailformattemplate.asp"-->


3. Directly below it, please add this code :

<%
Response.Buffer = True
If (Request.ServerVariables("HTTPS") = "off") Then
Dim xredir__, xqstr__

xredir__ = "https://" & Request.ServerVariables("SERVER_NAME") & _
Request.ServerVariables("SCRIPT_NAME")
xqstr__ = Request.ServerVariables("QUERY_STRING")

if xqstr__ > "" Then xredir__ = xredir__ & "?" & xqstr__

Response.redirect xredir__
End if
%>

4. Save the file and upload your site.


Times Viewed:
4358
Added By:
Wilson Keneshiro
Date Created:
8/31/2011
Last Updated:
8/31/2011