Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

About To Get SSL - Need Some Help


Recommended Posts



I'm about to buy a SSL certificate to protect my admin section and also customer details (credit card details are protected by WorldPay's SSL).


I notice that you have to specify the URL for the certificate, and entering www.mydomain.com isn't the same as entering mydomain.com.


Here's my problem. When I log in to my administration area, the default page is at http://www.mydomain.com/admin , but when I click on any of the options, the link doesn't include the www.


So, if I want to see orders, instead of taking me to http:///www.mydomain.com/admin/orders.php, it takes me to http://mydomain.com/admin/orders.php. The upshot of this, then, is that buying a SSL certificate will only protect either my customer's details, or the admin details as things stand.


I've looked at the configure.php code in the admin, which looks as follows:


  define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be NULL for productive servers

 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be NULL for productive servers

 define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');

 define('HTTPS_CATALOG_SERVER', '');

 define('ENABLE_SSL', 'false'); // secure webserver for administration tool

 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

 define('DIR_WS_ADMIN', '/admin/');


 define('DIR_WS_CATALOG', '/');



I know (roughly) how to change it so that it uses SSL, but I can't for the life of me understand why the www. isn't being used in the links.


Anyone any ideas??




Link to comment
Share on other sites

Actually, got it sorted! The server variables were being declared in the local->configure.php files, so once they were fixed, it worked a treat!!





Link to comment
Share on other sites


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

  • Create New...