Brian-Bear Posted October 10, 2005 Share Posted October 10, 2005 Hi This is my first post so please bear with me. I have OSC installed on our own webserver which i have direct access to in house. We run our shops payment collection on one website eg https://payments.com each shop has a directory of this secure address so our OSC shop eg www.party.com will use the folder on the secure server https://payments.com/partycom/ hope this makes sense so far. Now i have all running fine uploaded the catalogue to the main site and to the secure web directory set up my configure files in both directories and all works well you can go online and purchase and register and you are taken over to https://payments.com to do this, great stuff. However after the success screen when the continue button is clicked it takes me to the wrong web address, now i know this is down to configure.php. It also messes up the login when you enter your email and password as it goes to an incorrect web address // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.party.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://payments.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.party.com'); define('HTTPS_COOKIE_DOMAIN', 'https://payments.com'); define('HTTP_COOKIE_PATH', '/catalogue/'); define('HTTPS_COOKIE_PATH', '/partycom/catalogue/'); define('DIR_WS_HTTP_CATALOG', '/catalogue/'); define('DIR_WS_HTTPS_CATALOG', '/partycom/catalogue/'); 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', 'F:/party.com/catalogue/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); if I change the define('DIR_WS_HTTP_CATALOG', '/catalogue/'); to define('DIR_WS_HTTP_CATALOG', '/partycom/catalogue/'); it solves this problem on the secure site but creates another one by totally messing up my navigation menu for the catalogue back to the main shop,in other words it has put in an extra directory path of /partycom/ back to the shop catalogue It is something simple i am missing or else need another line of code, please help best regards Brian Link to comment Share on other sites More sharing options...
Brian-Bear Posted October 10, 2005 Author Share Posted October 10, 2005 heres the fix for anyone else in the same position // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.party.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://payments.com/partycom'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.party.com'); define('HTTPS_COOKIE_DOMAIN', 'https://payments.com/partycom'); define('HTTP_COOKIE_PATH', '/catalogue/'); define('HTTPS_COOKIE_PATH', '/catalogue'); define('DIR_WS_HTTP_CATALOG', '/catalogue/'); define('DIR_WS_HTTPS_CATALOG', '/catalogue/'); 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/'); Link to comment Share on other sites More sharing options...
♥Vger Posted October 10, 2005 Share Posted October 10, 2005 define('HTTP_SERVER', 'http://www.party.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://payments.com/partycom'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.party.com'); define('HTTPS_COOKIE_DOMAIN', '.payments.com/partycom'); define('HTTP_COOKIE_PATH', '/catalogue/'); define('HTTPS_COOKIE_PATH', '/catalogue/'); define('DIR_WS_HTTP_CATALOG', '/catalogue/'); define('DIR_WS_HTTPS_CATALOG', '/catalogue/'); Vger This is wrong: define('HTTP_COOKIE_DOMAIN', 'http://www.party.com'); define('HTTPS_COOKIE_DOMAIN', 'https://payments.com/partycom'); The Cookie Domain is a domain and not a URL (no http:// or https://) Vger Link to comment Share on other sites More sharing options...
Brian-Bear Posted October 10, 2005 Author Share Posted October 10, 2005 define('HTTP_SERVER', 'http://www.party.com'); // eg, http://localhost - should not be empty for productive serversdefine('HTTPS_SERVER', 'https://payments.com/partycom'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.party.com'); define('HTTPS_COOKIE_DOMAIN', '.payments.com/partycom'); define('HTTP_COOKIE_PATH', '/catalogue/'); define('HTTPS_COOKIE_PATH', '/catalogue/'); define('DIR_WS_HTTP_CATALOG', '/catalogue/'); define('DIR_WS_HTTPS_CATALOG', '/catalogue/'); Vger This is wrong: define('HTTP_COOKIE_DOMAIN', 'http://www.party.com'); define('HTTPS_COOKIE_DOMAIN', 'https://payments.com/partycom'); The Cookie Domain is a domain and not a URL (no http:// or https://) Vger Link to comment Share on other sites More sharing options...
Guest Posted October 10, 2005 Share Posted October 10, 2005 how about posting an actual url you are using Link to comment Share on other sites More sharing options...
Brian-Bear Posted October 10, 2005 Author Share Posted October 10, 2005 Fixed, Many thanks, will post full url later when nuts and bolts are sorted out Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.