Installing SSL Cert

Permalink
I had asked about this a while back, but didn't get a reply.

C5 redirects to whatever is in the site config file, right? So, if you install an SSL cert, how would you switch modes? Say you wanted to only encrypt a few pages, not the whole site.

For the site I'm working on, the client doesn't mind encrypting the whole site as the site is an investor's portal. However, when I changed the root of the site in the config file like so:

define('BASE_URL', 'https://domain.com');
define('DIR_REL', '');


Firefox complains that it doesn't like the way the site is redirecting.

I switched it back for now. I'll have to wait until tonight to mess with it further. What's the right way to change my C5 config for SSL?

Thanks!

Darkwater23
 
andrew replied on at Permalink Reply
andrew
Don't include https:// in your BASE_URL. Just make it "http://" and direct links to the pages with https:// should still work.

for example, this site ishttp://www.concrete5.org in its BASE_URL, but you can go to

http://www.concrete5.org/

And in your site just make it so that those pages you want to encrypt with SSL are linked to directly with https:// in their URLs.
Darkwater23 replied on at Permalink Reply
Darkwater23
Cool! Thanks for the info, Andrew!