Zen Cart Logo
Forums / General Questions / Enabling SSL on an existing store

Enabling SSL on an existing store

Views: 1,173

Results 1 to 14 of 14
10 Mar 2015, 3:24 PM
#1
njfire avatar

njfire

New Zenner

Join Date:
Feb 2011
Posts:
43
Plugin Contributions:
0

Enabling SSL on an existing store

I have installed an SSL cert. and everything is working fine on hosting side and confirmed the site loads under https:// I went ahead and did this tutorial here http://www.zen-cart.com/content.php?56-how-do-i-enable-ssl-in-zen-cart and nothing is working or redirecting to the secure domain. Is there something I am forgetting or not doing right? Here is the link to both stores, any help would be awesome.

http://debbiescraftcorner.com/index.php?main_page=
https://debbiescraftcorner.com/index.php?main_page=

10 Mar 2015, 3:31 PM
#2
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Enabling SSL on an existing store

It's working correctly. Only pages that need to be secure use https. Click on the log in link to see it working.

10 Mar 2015, 3:44 PM
#3
njfire avatar

njfire

New Zenner

Join Date:
Feb 2011
Posts:
43
Plugin Contributions:
0

Re: Enabling SSL on an existing store

So the categories won't come up as secure only the main page? I also see there isn't a green bar that should be there, and how to I redirect to the secure site? Sorry new to all this.

10 Mar 2015, 3:53 PM
#4
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Enabling SSL on an existing store

Only pages related to customer information like account pages or the checkout process will load with https. If you wanted all pages to load that way (and I don't know why you would) then you would need to modify the config files to change both the http and https server to https.

define('HTTP_SERVER', 'https://yourdomain.com');
define('HTTPS_SERVER', 'https://yourdomain.com');

10 Mar 2015, 4:01 PM
#5
njfire avatar

njfire

New Zenner

Join Date:
Feb 2011
Posts:
43
Plugin Contributions:
0

Re: Enabling SSL on an existing store

Oh no that is fine and thank you so much for helping, would you know how to redirect the http to the https, I thought changing the config files would do that automatically.

10 Mar 2015, 4:18 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Enabling SSL on an existing store

NJfire:

Oh no that is fine and thank you so much for helping, would you know how to redirect the http to the https, I thought changing the config files would do that automatically.

So again, generally speaking there is no need to have every page load with the ssl. If the desire is to have every page to the ssl, then as badarac indicated, the hhtp_server and https_server values would need to be updated to include https:.

If the. Issue is that the login page for example is not being presented using https, then in the includes/configure.php file is a setting for using a secure connection (ssl) that is probably set to false. To save the change to be made to that file, you will need to make the file writable using permissions of 644. Then open the file, change 'false to 'true', save the file, then restore the permissions of the file to 444.

A similar change is needed in the admin configure.php file, but there are two such settings. One for the catalog and one for the admin. Also in the admin, three of the four server listings should be modified to include https:, the only one that should not have https is the http_catalog_server...

Forgot to mention that I think under these settings that unless the target to arrive at is required to be Secure when a ssl is available, then the next jump in the site would change to a secure address. Otherwise, an .htaccess file could be written and added to redirect all traffic to https if that too is so desire, but that really isn't necessary either.

10 Mar 2015, 5:40 PM
#7
njfire avatar

njfire

New Zenner

Join Date:
Feb 2011
Posts:
43
Plugin Contributions:
0

Re: Enabling SSL on an existing store

mc12345678:

Forgot to mention that I think under these settings that unless the target to arrive at is required to be Secure when a ssl is available, then the next jump in the site would change to a secure address. Otherwise, an .htaccess file could be written and added to redirect all traffic to https if that too is so desire, but that really isn't necessary either.

Is there a setting in the acp to do this, without having to add .htaccess. I have done everything you stated and changed permissions back.

10 Mar 2015, 6:03 PM
#8
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Enabling SSL on an existing store

If what you're asking/wanting is to use https on all pages of the website then the change to the config file is the way to do it. No .htaccess file required. Perhaps my post was not clear. What you need to do is edit the config file changing http to https.
Change this:
define('HTTP_SERVER', 'http://yourdomain.com');
define('HTTPS_SERVER', 'https://yourdomain.com');

To this:
define('HTTP_SERVER', 'https://yourdomain.com'); <----------- This is where the change is made from http to https
define('HTTPS_SERVER', 'https://yourdomain.com');

10 Mar 2015, 6:14 PM
#9
njfire avatar

njfire

New Zenner

Join Date:
Feb 2011
Posts:
43
Plugin Contributions:
0

Re: Enabling SSL on an existing store

I have done that as you explained, the problem I am having is the main site page isn't showing as https everything else is working fine. I thank you you very much for all the help, I just can't figure out how to get the main page to the secure one. I have done all the edits on the files and that all is working great.

10 Mar 2015, 6:23 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Enabling SSL on an existing store

You need to fix the section containing: /facebook-icon.png

The calls are to the images using http:// regardless of if SSL or non-SSL

10 Mar 2015, 6:30 PM
#11
njfire avatar

njfire

New Zenner

Join Date:
Feb 2011
Posts:
43
Plugin Contributions:
0

Re: Enabling SSL on an existing store

okay that I can do without problem thank you, I am thinking the I have the site cached even though I deleted the cookies since the main page debbiescraftcorner.com/index.php?main_page= is not coming up the https:// at all. I just need someone to please confirm that is working right.

10 Mar 2015, 6:56 PM
#12
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Enabling SSL on an existing store

Try this in your .htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

10 Mar 2015, 7:01 PM
#13
njfire avatar

njfire

New Zenner

Join Date:
Feb 2011
Posts:
43
Plugin Contributions:
0

Re: Enabling SSL on an existing store

badarac:

Try this in your .htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

Thank you so much that worked great, now to fix the images on the page. Again thank you and for your patience to everyone.

14 Sep 2015, 11:27 AM
#14
incircolo avatar

incircolo

New Zenner

Join Date:
Aug 2009
Posts:
50
Plugin Contributions:
0

Re: Enabling SSL on an existing store

Which is the best way to redirect https to http on pages which are not checkout pages?
The problem is that https://www.domain.com/ or https://www.domain.com/product ... are still avalilable, this means that duplicates are possible as Google see https as a new domain.
I want that https://www.domain.com/checkout-shipping.html and other checkout pages work and
https://www.domain.com/product1 or https://www.domain.com/category2 are redirected to http ones.