Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'Shopping Cart' Page not found under SSL


Guest

Recommended Posts

Under httpdocs the site runs fine.

I copied the site into the httpsdocs directory and when you click 'add to cart' you get page not found, but the item was put into the cart.

Full SSL cert installed by hosting company.

 

Can anyone help?

Link to comment
Share on other sites

When you copied the site into the httpsdocs directory did you change any file pathways in the configure.php files in the httpsdocs copy from httpdocs to httpsdocs?

 

Vger

 

Yes, I was going to delete the httpdocs site when the secure version was working. here is my configure.php......

 

 

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

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

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

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', 'www.golfcrazy.ca');

define('HTTP_COOKIE_PATH', '');

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

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

 

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

define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/golfcrazy.ca/httpsdocs/catalog/');

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

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

Link to comment
Share on other sites

Firstly, it's a bad move to run the whole site under SSL. All SSL pages have to be encrypted before serving to the user, and this slows down page delivery time. Also your osCommerce store front has various settings which state that certain pages are either SSL or NONSSL, and running the whole site as SSL may cause problems with these. By all means run your 'admin under all ssl, but if you do this then you need to enter the https pathway for all http entries.

 

In the file you've quoted you've left out all of the http pathways, and this is causing your problem. If you intend still to run all of the storefront under ssl then you need to enter https://www.yourdomain.com, as in

 

define('HTTP_SERVER', 'https://www.yourdomain.com');

 

and whichever you choose to do these have to be filled in anyway

 

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

 

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

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...