Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Turn on SSL after the fact?


djmastermind

Recommended Posts

Posted

If you installed the store and chose "nonSSL" then added your SSL cert to your site you can just edit your settings.

 

Download your "catalog/includes/configure.php" file via FTP you can edit lines 14-20:

 

define('HTTP_SERVER', 'http://www.domain.com');
define('HTTPS_SERVER', 'https://www.domain.com');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

 

This is if you are using your own SSL certificate. If you are using a shared SSL certificate, let me know.

 

Thomas

Posted

If one was using a shared certificate how would the code look? Also I installed a new certificate yesterday yet when I looked at my cpanel today I saw this message:

 

Warning! the sslinstall feature has been disabled!

 

Any assistance would be greatly appreciated.

Archived

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

×
×
  • Create New...