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)

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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)"

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More