Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL problem


janggu

Recommended Posts

Posted

Hi there,

 

I got a shared SSL from my hosting company and it works well mostly. However, I noticed that the SSL url interfears with other pages (I set up osCommerce in a separated directory from the main site). For instance, when I click "Continue" button for "notify me for updates on my ordered list" at the end of the order, I get "page not found" error. Also, when I go to other pages in the main site (Home, About us...etc), the SSL url still exists in the Address box of the the web browser.

 

When I change SSL setting to "false" in configure.php, I don't have any problems.

Any suggestions???

 

Thanks very much in advance!

Posted

Thanks for your help and here is the configure.php file.

----------------------------------------

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

define('HTTPS_SERVER', 'https://ssl.myhosting.com/mywebsite.com/www/shop/'); // eg, https://localhost - should not be empty for productive servers

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

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

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_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', '/home/webusers/y/mywebsite.com/www/shop/');

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'user');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'dbname');

define('USE_PCONNECT', 'true'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

----------------------------------------------

Posted

Can you repost the following lines from your configure.php as they are and we might be able to help...

 

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

define('HTTPS_SERVER', 'https://ssl.myhosting.com/mywebsite.com/www/shop/'); // eg, https://localhost - should not be empty for productive servers

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

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

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '');

 

Fixing your example config, it would look something like this:

 

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

define('HTTPS_SERVER', 'https://ssl.myhosting.com/mywebsite.com/www'); // eg, https://localhost - should not be empty for productive servers

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

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

define('HTTPS_COOKIE_DOMAIN', 'ssl.myhosting.com');

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

define('HTTPS_COOKIE_PATH', '/mywebsite.com/www/shop/');

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

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

 

 

Cheers

Rob

Posted

First off, I really appreciate your help.

 

I changed the configure.php file as your instruction and works fine (I don't get "page not found" error anymore at the end). However, the SSL url is still there when I come back to the home page of the shopping cart after shopping. Is this supposed to be like this? Also, when I go to the other pages in the main site, the SSL url comes with it.

 

I noticed that when I go to the information pages which come with osCommerce such as "contact us, privacy notice...etc), the SSL url disappears.

 

Is this some kind bug or can I fix this problem?

Thanks again.

Posted

When you login, you should see the main page in SSL. You will find that going to a category, manufacturer or information page will take you back to NONSSL, however all other account related pages are in SSL.

 

After an order you remain in SSL until you log off or visit a page described above.

 

Glad that your issue is now fixed.

 

Regards

Rob

Archived

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

×
×
  • Create New...