Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin not secured by SSL


Chris Smith

Recommended Posts

Most likely you have not turn on in your admin configure.php file.

 

  define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

Link to comment
Share on other sites

Getting admin ssl is not the easiest thing in the world from my experience.

 

In addition to the above, make sure that HTTPS_SERVER is set to "httpS://www.mysite.com" as well.

 

If it still doesn't work, add this code just below the end of admin/includes/application_top.php:

 

if($_SERVER['SERVER_PORT'] == 80) {

Header("Location: " . HTTPS_CATALOG_SERVER . DIR_WS_ADMIN);

exit;

}

 

THAT should get it working!

 

Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Getting admin ssl is not the easiest thing in the world from my experience.

 

In addition to the above, make sure that HTTPS_SERVER is set to "httpS://www.mysite.com" as well.

 

If it still doesn't work, add this code just below the end of admin/includes/application_top.php:

 

if($_SERVER['SERVER_PORT'] == 80) {

Header("Location: " . HTTPS_CATALOG_SERVER . DIR_WS_ADMIN);

exit;

}

 

THAT should get it working!

 

Peter

 

Thanks for both of your replies, its working now. :thumbsup:

 

Chris :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...