Guest Posted July 27, 2005 Share Posted July 27, 2005 I've just installed OS commerce 2.2, installation went fine but I'd really appreciate some help on a problem I'm having with customer login. I'm using a shared SSL and the url for the login page is: https://server6.simplewebserver.co.uk/~flyi...talog/login.php? This works fine until you enter the username and password. Then, instead of redirecting to: https://server6.simplewebserver.co.uk/~flyi...talog/index.php? the customer is redirected to: https://server6.simplewebserver.co.uk/catalog/index.php? (the ~flyingst is missing) Manually changing the url in the browser by adding back the ~flyingst gives the correct page! I'm brand new to OS Commerce, and hope that I have explained the problem properly Any help would be much appreciated Paul Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2005 Share Posted July 27, 2005 In /includes/application_top.php try changing: $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; to: request_type = (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on')) ? 'SSL' : 'NONSSL'; Matti Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2005 Share Posted July 27, 2005 Hi Matti Thanks for your reply. Unfortunately, the problem still remains, for some reason not sure what to do! Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2005 Share Posted July 27, 2005 Not sure if you have the problem I think - this one sometimes works: $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL'; Matti Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2005 Share Posted July 27, 2005 Hi Matti Still no joy. I don't know if it helps, but apart from your suggested changes the entire software installation is standard, no changes to any of the code. Link to comment Share on other sites More sharing options...
Guest Posted July 28, 2005 Share Posted July 28, 2005 I found the problem, in the php.configure file I had entered the wrong address for https cookie domain, apologies and thanks for your efforts to help Best regards, Paul :blush: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.