brendancollis Posted March 5, 2012 Share Posted March 5, 2012 Hiya, The one and only problem I have with my shop is, as soon as I activate SSL in the back office, I'm unable to re-login to the admin side,,Just redirects over and over again. All is well on the customer side SSl doing its job. The only way I can get into admin side is by diabling ssl via the database.. Anyone got a clue how to solve it, I want to launch the shop next week as a gift for my neice. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 5, 2012 Share Posted March 5, 2012 Hi brendan, This is usually a redirection issue. Please see the suggestions here and here for resolving this issue. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
brendancollis Posted March 5, 2012 Author Share Posted March 5, 2012 Thanks for that Mike, I have run through these topics and made the changes but still the loop is there on admin login (see snapshot) here are the lines on admin login.php can you see any probs? if ((empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off') AND Configuration::get('PS_SSL_ENABLED')) { // You can uncomment theses lines if you want to force https even from localhost and automatically redirect // header('HTTP/1.1 301 Moved Permanently'); // header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']); // exit();<p> // If ssl is enabled, https protocol is required. Exception for maintenance and local (127.0.0.1) IP if ($clientIsMaintenanceOrLocal) $errors[] = translate('SSL is activated. However, your IP is allowed to use unsecure mode (Maintenance or local IP).').'<br/>'; else $warningSslMessage = translate('SSL is activated. Please connect using the following url to log in in secure mode (https).') .'<br/><br/><a href=" if ((empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off') AND Configuration::get('PS_SSL_ENABLED')) { // You can uncomment theses lines if you want to force https even from localhost and automatically redirect // header('HTTP/1.1 301 Moved Permanently'); // header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']); // exit();<p> // If ssl is enabled, https protocol is required. Exception for maintenance and local (127.0.0.1) IP if ($clientIsMaintenanceOrLocal) $errors[] = translate('SSL is activated. However, your IP is allowed to use unsecure mode (Maintenance or local IP).').'<br/>'; else $warningSslMessage = translate('SSL is activated. Please connect using the following url to log in in secure mode (https).') .'<br/><br/><a href=" if ((empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off') AND Configuration::get('PS_SSL_ENABLED')) { // You can uncomment theses lines if you want to force https even from localhost and automatically redirect // header('HTTP/1.1 301 Moved Permanently'); // header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']); // exit(); // If ssl is enabled, https protocol is required. Exception for maintenance and local (127.0.0.1) IP if ($clientIsMaintenanceOrLocal) $errors[] = translate('SSL is activated. However, your IP is allowed to use unsecure mode (Maintenance or local IP).').'<br/>'; else $warningSslMessage = translate('SSL is activated. Please connect using the following url to log in in secure mode (https).') .'<br/><br/><a href="https://".Tools::getServerName().Tools::safeOutput($_SERVER['REQUEST_URI'].'">https://'.Tools::getServerName().Tools::safeOutput($_SERVER['REQUEST_URI']).'</a>'; } Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 5, 2012 Share Posted March 5, 2012 Hi brendancollins, Have you tried accessing your admin panel via https:// instead of http://? If you're trying to access the secure site via http:// you're going to get that error, although just clicking that link will properly redirect you. Go ahead and give that a try and let me know if that works any better for you. -Mike 1 Link to comment Share on other sites More sharing options...
brendancollis Posted March 5, 2012 Author Share Posted March 5, 2012 I always go to the admin login via https:// the front end is http:// untill a customer logs in and then it goes to https:// Its all good otherwise, Link to comment Share on other sites More sharing options...
wojtopole Posted June 26, 2013 Share Posted June 26, 2013 (edited) hi where can i setup that login & shopping users have to do in ssl connection ? i have installed ssl cert (in the same folder/domain) but everything is working in http:// only ... of course when i force ssl - evertything is OK, but how to force presta to use ssl ???? Edited June 26, 2013 by wojtopole (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts