Zen Cart Logo
Forums / General Questions / SSL cert added, now formattting changed

SSL cert added, now formattting changed

Views: 524

Results 1 to 6 of 6
16 Oct 2011, 12:15 AM
#1
wavmixer avatar

wavmixer

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

SSL cert added, now formattting changed

I just did a new install of v1.3.9h and everything was working fine. I have since added a SSL cert to the site and the images do not show up and the formatting is off in secure mode on the index page.

non-secure mode> http://shop.kantorla.com/
secure mode> https://shop.kantorla.com/

Any ideas on why this is happening?

16 Oct 2011, 4:36 PM
#2
kobra avatar

kobra

Black Belt

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

Re: SSL cert added, now formattting changed

You are attempting to use 2 types of addressing

shop.kantorla.com and kantorla.com/shop

Check your 2 configure.php files

16 Oct 2011, 5:42 PM
#3
wavmixer avatar

wavmixer

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

Re: SSL cert added, now formattting changed

I have just updated to this:

define('HTTP_SERVER', 'http://shop.kantorla.com');
define('HTTPS_SERVER', 'https://shop.kantorla.com');
define('HTTP_CATALOG_SERVER', 'http://shop.kantorla.com');
define('HTTPS_CATALOG_SERVER', 'https:shop.kantorla.com');

Now neither is working correctly :blink:

non-secure mode> http://shop.kantorla.com/
secure mode> https://shop.kantorla.com/

17 Oct 2011, 3:18 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: SSL cert added, now formattting changed

That's because you're addressing it incorrectly.

Zen Cart builds the links based on what you tell it in your configure.php file.

It combines HTTP_SERVER and DIR_WS_CATALOG
and for SSL pages it combines HTTPS_SERVER and DIR_WS_HTTPS_CATALOG

So, if you really want your store to sit at http:// shop.domain.com then you must set HTTP_SERVER to 'http://shop.domain.com' and DIR_WS_CATALOG to '/'. You can't leave "shop" in both places. Do similarly for HTTPS defines.

17 Oct 2011, 3:36 AM
#5
wavmixer avatar

wavmixer

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

Re: SSL cert added, now formattting changed

Thank you DrByte. This cured the formatting of the page in HTTPS mode, but it also brought on a new problem where the links are no longer redirecting correctly. For example, the log in link now goes to https://shop.kantorla.com/*//shop/index.php?main_page=login

17 Oct 2011, 3:50 AM
#6
wavmixer avatar

wavmixer

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

Re: SSL cert added, now formattting changed

Bah!! i got it right now:
define('DIR_WS_CATALOG', '/'); made it work.

Silly me tried putting:
define('DIR_WS_CATALOG', '*/'); in
:blush:
Thank you for your guidence Sensei :clap: