Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Question


CHertlein

Recommended Posts

I've had my shop up & running and recently added SSL. SSL pages will work, but anytime a link is clicked it goes back to the http not https like it should. I can't seem to ever get it to go to the checkout on SSL. Searched the forums already, didn't see anything, if I missed something I apologize in advance. I guess my question is how to make it do all of the links as https. I'm pretty sure my configure.php file is set up right, but any changes I make don't seem to change anything. Thanks for any help!

 

Site is http://store.preferredbaskets.com

 

Thanks!

Link to comment
Share on other sites

Did you set the ssl url and ssl to true in includes/configure.php?

 

These are the (empty) lines you need to look at.

 

efine('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '');

define('DIR_WS_HTTPS_CATALOG', '');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Here's what I've got:

 

define('HTTP_SERVER', 'http://store.preferredbaskets.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://store.preferredbaskets.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'store.preferredbaskets.com');

define('HTTPS_COOKIE_DOMAIN', 'store.preferredbaskets.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

Link to comment
Share on other sites

Look for an extra configure.php file in includes/local.

 

If you find one rename it after you make sure that everything in the main one is correct.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Renamed it & it broke everything, BUT I did see in there a line:

 

define('ENABLE_SSL', 0);

 

Changed it to 1 and it all works like it should. Thanks for pointing me in the right direction!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...