Jump to content

Disable Backend SSL


Recommended Posts

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

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

×
×
  • Create New...