Great. Now that you have it functioning, how would you like to have SSL support at no cost to you? (of course you would).
Thanks to the fact that you are using CloudFlare this is very easy to do. (Actually easier than purchasing your own certificate, and generally a lot easier than using a 'shared' certificate (that many hosts provide).
It only takes a couple of *minor* changes to the two configure.php files.
In "/YOUR_ADMIN/includes/configure.php"
Ensure that the 'defines' are similar to these:
define('HTTP_SERVER', 'http://www.yourdomain.com');
define('HTTPS_SERVER', 'https://www.yourdomain.com');
define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com');
define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com');
You probably won't even need to change anything here other than to ensure that they include the 'www' (just add them if they don't).
Don't make any other changes to these URL's
Then ensure the following are set to 'true'
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');
// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'true');
------------------------------------------------
In "/includes/configure.php" there are similar lines that need to checked or changed
define('HTTP_SERVER', 'http://www.www.yourdomain.com');
define('HTTPS_SERVER', 'https://www.www.yourdomain.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');
Save your changes.
The next thing to do is to log into your cloudflare account and click the 'CloudFlare Settings' button and look for the 'SSL' setting. Set this for "Flexible SSL".
That's it, all done.
It may take up to 5 minutes (but no more) for the changes to come into effect.
I would also suggest you make a backup copy of both of the configure.php files before changing them, JUST IN CASE something goes wrong.
I will add that there is no *need* to have SSL enabled for the store, but many people will try to convince you that this is essential for any eCommerce site and it is generally only a matter of time before you start to believe this and start asking questions about how to do it.
I figure that if you have this info at hand you won't get yourself too confused with the different types of certificates and the different configuration changes that *they* require.
Note: There are also many people that will disagree with my suggestion/recommendation to use the CloudFlare SSL rather than purchasing your own, and these people will raise a valid (but rather insignificant point) that I won't go into at this stage.
Cheers
RodG



Reply With Quote
