VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 not reverting back to http
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

74 Posts

Posted - May 05 2011 :  22:11:47  Show Profile  Visit DrApple's Homepage  Reply with Quote

I've just set up the SSL on a clients site and have it all working fine.

But when I go from the https:// shopping cart etc, and click "Home" it doesnt revert back to the http://

Any idea why?


VP-ASP New User

74 Posts

Posted - May 11 2011 :  21:19:02  Show Profile  Visit DrApple's Homepage  Reply with Quote

Go to Top of Page

VP-ASP Expert

731 Posts

Posted - May 14 2011 :  05:14:40  Show Profile  Reply with Quote
DrApple, it could be your shop$config.asp file setup.
be sure that you setup xmysite to : "http://www.yoursite.com" and xssl to : "https://www.yoursite.com".

check that to make sure that correct.

Go to Top of Page

VP-ASP New User

74 Posts

Posted - May 18 2011 :  23:43:58  Show Profile  Visit DrApple's Homepage  Reply with Quote
yes this was already correct.

Any other ideas?

Go to Top of Page

VP-ASP New User

77 Posts

Posted - May 19 2011 :  08:35:42  Show Profile  Reply with Quote
To accomplish this you will have to hard code any home links to direct them to a non secure page. For example if your link to home is /default.asp then change it to http://www.mysite.com

Replace "mysite" with the actual name of your site.

Edited by - williamj on May 19 2011 08:37:17
Go to Top of Page

[email protected]
VP-ASP New User

149 Posts

Posted - June 07 2011 :  10:23:28  Show Profile  Reply with Quote
We had a similar problem that we overcame by using a redirect file. (works for us but still putting-out-the-use-at-your-own-risk warning Create an ASP file with this code:

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

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

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

Response.redirect xredir__
End if


Save it as something like httpstohttp.asp
then just put this
<!--#include file="httpstohttp.asp"-->
in some of the asp files (be careful not to put it in ones that the checkout uses such as shopcustomer.asp)
The files I included them in are default.asp, shopcontent.asp, shopdisplaycategories.asp, and shopexd.asp

There might be an easier way but this was the most convenient for me at the time that I was doing it.

Incidentally, I also used the reverse when it came to my admin section so it would go from http to https....

I made the following change:

If (Request.ServerVariables("HTTP") = "on") Then
Dim xredir__, xqstr__

xredir__ = "https://" &

saved it to httptohttps.asp and included it in the default file of the admin page (whatever you named it)

Again...use at your own risk but the code is pretty straight forward :) Always back up your originals.

Let me know how that works for you
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000