Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to Cart going to empty cart after SSL install


Dnj1964

Recommended Posts

BS4

7.125

 

 

After SSL install clicking "ADD TO CART"

 

First has a pop up saying:

"The information you have entered on this page will be sent over an insecure connection and could be read by a third party.

Are you sure you want to send this information?"

Clicking "CONTINUE"

Sends to https://www.BAD-EXAMPLE.ca/shopping_cart.php

And shows your cart is empty.

 

Hopefully someone can point me in the right direction.

Thanks

 

 

 

.htaccess 

#redirect index.php to root
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://www.bad-example.ca/ [R=301,L]

#redirect non-www to www
RewriteCond  %{HTTPS}  !on  [OR]
RewriteCond  %{HTTP_HOST}  !^www\.  [NC]
RewriteRule ^(.*)$ https://www.bad-example.ca/$1 [R=301,L]

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.bad-example.ca/$1 [R,L]

 

public_html/admin/includes/configure.php


  define('HTTP_SERVER', 'http://www.bad-exmaple.ca');
  define('HTTPS_SERVER', 'https://www.bad-exmaple.ca');
  define('ENABLE_SSL', 'true');
  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', '/');

  define('DIR_FS_CATALOG', '/home/user55/public_html/');
  
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'yeah-right');
  define('DB_SERVER_PASSWORD', 'up-down-all-around');
  define('DB_DATABASE', 'user55_indica');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'UTC');






public_html/admin/includes/configure.php

  define('HTTP_SERVER', 'http://www.bad-exmaple.ca');
  define('HTTPS_SERVER', 'https://www.bad-exmaple.ca');
  define('ENABLE_SSL', 'true');
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shopadmin');
  define('HTTPS_COOKIE_PATH', '/shopadmin');
  define('HTTP_CATALOG_SERVER', 'http://www.bad-exmaple.ca');
  define('HTTPS_CATALOG_SERVER', 'https://www.bad-exmaple.ca');
  define('ENABLE_SSL_CATALOG', 'true');
  define('DIR_FS_DOCUMENT_ROOT', '/home/user55/public_html/');
  define('DIR_WS_ADMIN', '/shopadmin/');
  define('DIR_WS_HTTPS_ADMIN', '/shopadmin/');
  define('DIR_FS_ADMIN', '/home/user55/public_html/shopadmin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_FS_CATALOG', '/home/user55/public_html/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'yeah-right');
  define('DB_SERVER_PASSWORD', 'up-down-all-around');
  define('DB_DATABASE', 'user55_indica');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'UTC');

 

Link to comment
Share on other sites

7 hours ago, Dnj1964 said:

define('HTTP_SERVER', 'http://www.bad-exmaple.ca');

Your ,htaccess file says to use ssl for the whole shop but the above entry in the configure file says not to. You need to change the above urlto use https.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...