Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Switching to SSL


quincynet

Recommended Posts

Can anyone tell me how to get this working-- if so I really need help solving this problem since I'm on a time table with a client! Now I scrapped the whole thing and I'm just trying to get the default cart to work before customizing. Using MS1 Cart.

 

Here we go...

 

I cannot get the cart to switch to SSL on checkout! I've tried on both Unix and NT with the same results. The links on my pages do not change, they stay http://areaavenue.com all the time no matter what I change in the configure files to. I need them to be http://www.areaavenue.com, then change to https://www.areaavenue.com.

 

Now trying on Unix again.

Here are my config settings...

 

Admin:

 

define('HTTP_SERVER', 'http://www.areaavenue.com'); 

define('HTTP_CATALOG_SERVER', 'http://www.areaavenue.com');

 define('HTTPS_CATALOG_SERVER', 'https://www.areaavenue.com');

 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/areaave/areaavenue.com'); // where the pages are located on the server

 define('DIR_WS_ADMIN', '/admin/'); // absolute path required

 define('DIR_FS_ADMIN', '/hsphere/local/home/areaave/areaavenue.com/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 define('DIR_FS_CATALOG', '/hsphere/local/home/areaave/areaavenue.com/catalog/'); // absolute path required

 

Catalog:

 

define('HTTP_SERVER', 'http://www.areaavenue.com'); 

 define('HTTPS_SERVER', 'https://www.areaavenue.com'); 

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

 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 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/');



 define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

 define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/areaave/areaavenue.com');

 define('DIR_FS_CATALOG', '/hsphere/local/home/areaave/areaavenue.com/catalog/');

 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Please let me know any suggestions! I have searched and tried almost everything it seems!

 

Thanks!!!

Link to comment
Share on other sites

If you are on a shared server you will need to point your https server to the shared https url. example:

 

define('HTTPS_CATALOG_SERVER', 'https://hostxxx.provider.com/~areaavenue');

 

Replace hostxxx with your shared host name and provider with you hosting provider.

 

This is only if your on Shared SSL Server.

 

HTH, Tony

Link to comment
Share on other sites

Ok... Changed this code in html_output.php as suggested in another post.

It changed a couple of links, but not many. And now they go to pages like SSLaccount.php -- which don't exist!

 

 

Original:



// if ($connection == 'NONSSL') {

    // $link = HTTP_SERVER . DIR_WS_CATALOG;

   //} elseif ($connection == 'SSL') {

     // if (ENABLE_SSL == true) {

       // $link = HTTPS_SERVER . DIR_WS_CATALOG;

    // } else {

      // $link = HTTP_SERVER . DIR_WS_CATALOG;

     // }

   // } else {

    // die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');

  // }



New:

  

  if ($connection == 'NONSSL') { 

     $link = HTTP_SERVER . DIR_WS_CATALOG; 

   } elseif ($connection == 'SSL') { 

     if (ENABLE_SSL == true) { 

       $link = HTTPS_SERVER . DIR_WS_CATALOG; 

     } elseif ($connection == 'NONSSL') { 

      $link = HTTP_SERVER . DIR_WS_CATALOG; 

     } else { 

      $link=HTTPS_SERVER . DIR_WS_CATALOG . $connection; 

     }

  } else {

     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');

   }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...