Forums / General Questions / SSL Error on Checkout - "www" dropped from URL by my cart

SSL Error on Checkout - "www" dropped from URL by my cart

Locked

Started by mitch_bdog on 11 Dec 2007, 9:37 PM · Views: 1,709

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Dec 2007, 9:37 PM
#1
mitch_bdog avatar

mitch_bdog

New Zenner

Join Date:
Dec 2007
Posts:
5
Plugin Contributions:
0

SSL Error on Checkout - "www" dropped from URL by my cart

Hi: I've had the SSL installed on our website...
http://blinddogcoffee.com...and looks like https is working ok...
https://blinddogcoffee.com

The store is locatetd inside the zen directory...
http://blinddogcoffee.com/zen

**Problem: **When I click on "Go To Checkout" the "www" is dropped and my browser shows a Certificate Error. Example
https://blinddogcoffee.com/zen/index.php?main_page=login

If I add "www" manually in the browser it looks fine
https://www.blinddogcoffee.com/zen/index.php?main_page=login

Question: Have I done something wrong on my install? Or, did our hosting company install the SSL wrong? Here's my include config code for both files.

INCLUDE FILE CODE:
define('HTTP_SERVER', 'http://blinddogcoffee.com');
define('HTTPS_SERVER', 'https://blinddogcoffee.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

ADMIN INCLUDE CODE:
define('HTTP_SERVER', 'http://blinddogcoffee.com');
define('HTTPS_SERVER', 'https://blinddogcoffee.com');
define('HTTP_CATALOG_SERVER', 'http://blinddogcoffee.com');
define('HTTPS_CATALOG_SERVER', 'https://blinddogcoffee.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'false');

Regards,
Mitch

11 Dec 2007, 9:43 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: SSL Error on Checkout - "www" dropped from URL by my cart

If your certificate requires the "www" part, then add it to your URLs in your configure.php files.
Your URLs need to match your certificate.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Dec 2007, 9:43 PM
#3
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: SSL Error on Checkout - "www" dropped from URL by my cart

Well its not dropping the www by accident itws following your commands

This

INCLUDE FILE CODE:
define('HTTP_SERVER', 'http://blinddogcoffee.com');
define('HTTPS_SERVER', 'https://blinddogcoffee.com');

needs to be

INCLUDE FILE CODE:
define('HTTP_SERVER', 'http://www.blinddogcoffee.com');
define('HTTPS_SERVER', 'https://www.blinddogcoffee.com');

You created the ssl with the www intact, however you are telling zen to NOT use the www

this should take good care of ya

Zen cart PCI compliant Hosting

11 Dec 2007, 9:48 PM
#4
mitch_bdog avatar

mitch_bdog

New Zenner

Join Date:
Dec 2007
Posts:
5
Plugin Contributions:
0

Re: SSL Error on Checkout - "www" dropped from URL by my cart

**Thanks very much Doc! **It looks like it's working now! -Mitch