I have SSL enabled on my store (v1.5.5f).
It goes to https during checkout, login etc.
I would like to have all store pages go to https, not just login or checkout.
Is it possible? In configure.php files, I have the following:
in /admin/includes/configure.php
define('HTTP_SERVER', 'https://www.MYDOMAIN.com');
define('HTTP_CATALOG_SERVER', 'http://www.MYDOMAIN.com');
define('HTTPS_CATALOG_SERVER', 'https://www.MYDOMAIN.com');
define('ENABLE_SSL_CATALOG', 'true');
in /includes/configure.php
define('HTTP_SERVER', 'http://www.MYDOMAIN.com');
define('HTTPS_SERVER', 'https://www.MYDOMAIN.com');
define('ENABLE_SSL', 'true');
There was a lengthy thread here from a year ago HERE, but it got lost in a lot of philosophical discussion. Someone said, I think, to set ENABLE_SSL to false and it would SSL all pages. This is not true; it then doesn't SSL any pages.
It seems I could modify the zen_href_link() function in html_output.php by simply forcing the connection to SSL all the time by inserting this at line 26:
PHP Code:
$connection = 'SSL';
Then the following tests always evaluate to SSL and every link is forced to https.
Is this the easiest way, or is there something I'm missing with the configure files?
Or would it be better to set both defines to the https version, i.e.:
define('HTTP_CATALOG_SERVER', 'https://www.MYDOMAIN.com');
define('HTTPS_CATALOG_SERVER', 'https://www.MYDOMAIN.com');
Thanks,
- Stephen
Bookmarks