Pressed0024 Posted November 23, 2013 Share Posted November 23, 2013 Quick check for those using SSL. I am considering buying one. Does SSL get enabled for the backend by default? If so can it be disabled? (SSL for backend makes my daily work slower. I only wana provide SSL to customers) Link to comment Share on other sites More sharing options...
vekia Posted November 24, 2013 Share Posted November 24, 2013 by default, if you've got ssl turned on, back office is also using ssl connection. By default, there is also no option to disable this feature only for back office. you can try to modify controller: classes/controllers/AdminController.php there is init() function with code: /* Server Params */ $protocol_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://'; $protocol_content = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http change it to: /* Server Params */ $protocol_link = 'http://'; $protocol_content = 'http://'; then connect with your back office with simple http protocol, should work then without ssl (also ajax queries) Link to comment Share on other sites More sharing options...
Pressed0024 Posted November 24, 2013 Author Share Posted November 24, 2013 Any by default, if you've got ssl turned on, back office is also using ssl connection. By default, there is also no option to disable this feature only for back office. you can try to modify controller: classes/controllers/AdminController.php there is init() function with code: /* Server Params */ $protocol_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://'; $protocol_content = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http change it to: /* Server Params */ $protocol_link = 'http://'; $protocol_content = 'http://'; then connect with your back office with simple http protocol, should work then without ssl (also ajax queries) Any idea if doing it at htaccess (after the prestashop default) would be easier and more presta version upgrade-proof? Link to comment Share on other sites More sharing options...
vekia Posted November 24, 2013 Share Posted November 24, 2013 unfortunately, there is no way to do it in htaccess due to the fact, that prestashop has got feature IN CODE which automatically redirect from non-ssl to ssl connection, so you will have "infinite loop error (internal server error)" Link to comment Share on other sites More sharing options...
Pressed0024 Posted November 25, 2013 Author Share Posted November 25, 2013 Thanks for the code. Will give that a try when i get an SSL. Hopefully this helps those already on SSL. Link to comment Share on other sites More sharing options...
Recommended Posts