Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL redirects to wrong path


MrE03

Recommended Posts

Posted

everything works fine in shared ssl, the problem is right when the item is confirmed i get the link that is perfectly like this:

 

https://w4.server-shield.com/istoreparts/catalog/checkout_success.php?osCsid=e997a5367acb08ab5a1da8d3a8d535d1

 

but once i click continue the link goes here:

 

https://w4.server-shield.com/catalog/index.php?action=notify&notify[]=&osCsid=e997a5367acb08ab5a1da8d3a8d535d1

 

you can notice right away the path of istoreparts is missing.

 

What i did was play around in includes/configure.php

 

i actually resolved it and had the path shown again, but then it would not work correctly if someone clicks on the item

 

the url looks something like:

 

http://www.istoreparts.comistoreparts/catalog/index.php?osCsid=e997a5367acb08ab5a1da8d3a8d535d1

 

either that link or pictures wont show up, and tables are missing, etc.

 

Here is my code in includes/configure.php how it is originally.

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.istoreparts.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://w4.server-shield.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.istoreparts.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://w4.server-shield.com/istoreparts');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/istoreparts/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/');

 

does anyone know how i can fix this problem?

Posted

Try this:

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
?define('HTTP_SERVER', 'http://www.istoreparts.com'); // eg, http://localhost - should not be empty for productive servers
?define('HTTPS_SERVER', 'https://w4.server-shield.com/istoreparts'); // eg, https://localhost - should not be empty for productive servers
?define('ENABLE_SSL', true); // secure webserver for checkout procedure?
?define('HTTP_COOKIE_DOMAIN', 'www.istoreparts.com');
?define('HTTPS_COOKIE_DOMAIN', 'w4.server-shield.com/istoreparts');
?define('HTTP_COOKIE_PATH', '/catalog/');
?define('HTTPS_COOKIE_PATH', '/catalog/');
?define('DIR_WS_HTTP_CATALOG', '/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/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

omg wow, just that simple change, and it fixed it, i must've really overlooked this one when trying to play around with it,

 

thanks!

Posted

actually nm found a new error. When a customer orders an item and i update them on their order, they receive the email fine but the path to check their account history provides them the invalid url which is:

 

https://w4.server-shield.com/catalog/account_history_info.php?order_id=13Date

 

Any ideas?

Posted

still have not been able to fix this problem, is anyone able to help me out on this one?

 

thanks

Archived

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

×
×
  • Create New...