Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Installing on a Linux/Unix Server / SSL urls work for certain links but not for others

SSL urls work for certain links but not for others

Locked

Started by jayamohan on 17 Apr 2010, 4:50 PM · Views: 1,161

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Apr 2010, 4:50 PM
#1
jayamohan avatar

jayamohan

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

SSL urls work for certain links but not for others

Hi,
I am a new Zencart user, and I have a site hosted on a dedicated server managed thru Plesk. I have defined my domain and have got the ssl certificate installed for the domain. I can access my site thru http and https when supplying the domain name. However some of the urls, which don't actually map to a physical file, don't seem to work with the ssl url. For http://www.domain.com/products_all works, but https://www.domain.com/products_all doesn't work. Can anyone help?

Thanks

17 Apr 2010, 4:57 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: SSL urls work for certain links but not for others

Shopping is not set to be under https and ZenCart auto switches from http to https automatically for those pages where it is required

If you have it setup to use ssl
https://www.zen-cart.com/tutorials/index.php?article=14

Zen-Venom Get Bitten

17 Apr 2010, 5:05 PM
#3
jayamohan avatar

jayamohan

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: SSL urls work for certain links but not for others

Thanks Kobra, I did follow that document while setting the SSL up. I guess the problem could be that in the templates that i am using, may be I am referring to https urls, when it should have been http. Now trying to figure out how to edit that.

17 Apr 2010, 5:19 PM
#4
jayamohan avatar

jayamohan

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: SSL urls work for certain links but not for others

Just clarifying the above post, if Zen auto switches from http to https where required, we shouldn't be seeing any links beginning with https:// when we are on the site? On my sight I can see that the login button is actually linking to https://www.domain.com/login. Shouldn't this be http://www.domain.com/login? Similarly when I add the items to cart, the checkout link points to https://www.domain.com/checkout_shipping. This also I believe should be http://www.domain.com/checkout_shipping. Am I right in these assumptions? Any ideas where I can configure Zen to get it to autoswitch from http to https? Or is that the setting by default?

Thanks.

17 Apr 2010, 5:45 PM
#5
jayamohan avatar

jayamohan

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: SSL urls work for certain links but not for others

I changed the includes/configure.php to amend define('ENABLE_SSL', 'true'); to define('ENABLE_SSL', 'false'). As the whole purpose of my https url was to get Google checkout working for the site. This seems to be doing the trick. But now I am confused as to what exactly is the purpose of define('ENABLE_SSL', 'true'); setting? Is it to ensure that the checkout and login urls switch to https:// instead of http:// If so, there seem to be some other settings that I need to change. As simply setting the define('ENABLE_SSL', 'true'); along with the correct certificate, doesn't seem to work for urls that are not actually mapping to physical files.

A long way for me to understand Zen, it looks like.

Thanks.

17 Apr 2010, 6:29 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL urls work for certain links but not for others

Have SSL installed on your server (looks like this is done).

In BOTH configure.php files, set SSL to true.

That's all you need do...


As Kobra explained, SSL will be used by ZC ONLY when it is needed - and surely logic tells you that LOGIN is a process where sensitive data is being transmitted? Hence LOGIN will use SSL.

Trust ZC to do what it is meant to do. You need make NO EDITS to files - other than the configure.php files. Leave everything else alone...

(If you set it to FALSE, it will be FALSE for Google Checkout too... thus defeating the very objective you hope to achieve.)

20 years a Zencart User