SSL

Permalink
I purchased a new domain today through Bluehost.com and hosted it with them. I also purchased a Security Certificate. I installed Concrete5 without issue and then the problems started.

I'm not a techie and depend on Force SSL on my other sites (which I have not yet upgraded to the latest C5) to create secure pages. But I discovered that Force SSL doesn't work with the latest version of C5, and when I type in an https address the following error is returned -- "This webpage has a redirect loop" although Bluecast assures me the security on the site is up and running.

Question 1 -- What code is added to what file on what file path to force SSL without the Force SSL Block and would that potentially fix the glitch?

Question 2 -- On my project page for the new site I ended up with two "Found Location" entries with two urls (russellsmobile.com andhttp://www.russellsmobile.com) and I have no idea how two entries were created, whether that is glitching my SSL. I also have no idea how to remove one of the "Locations" or whether I should.

Any help out there?

 
hostco replied on at Permalink Reply
hostco
Define your base url in /config/site.php by adding this line of code to it and saving the file.

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


swap out the name domainname with your domain name.

See if that helps
russellglee1 replied on at Permalink Reply
Yes -- thank you.
jbx replied on at Permalink Reply
jbx
Thanks Hostco,

this issue is completely resolved in the new version...

Jon
roarkh replied on at Permalink Reply
Which new version is that? I just installed 5.5.1 in a folder on my ssl-enabled site and while I am able to run through the install procedure once I try to load the example site I am greeted with the following "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

The same occurs whether or not I add the 'BASE_URL' definition to site.php or not. Is there definitive documentation somewhere describing the process to install Concrete 5.5.1 with SSL? I remember having to go through a lot of hassle getting 5.4 to work with SSL as well, it really seems that it should be easier than this, or perhaps I am missing something simple.

Thank you.
jbx replied on at Permalink Reply
jbx
Hey Roarkh,

Install my Force SSL addon. It's free and should solve your problem...

Jon
travisneids replied on at Permalink Reply
travisneids
We just had this come up in concrete5's IRC today. You can also find line 6 in concrete/startup/url_check.php

Change:

$protocol = 'http://';


to

$protocol = 'https://';


More of a reference here:
http://www.concrete5.org/community/forums/installation/redirect-pro...
roarkh replied on at Permalink Reply
This did the trick, thank you very much. Interestingly enough the post you referenced was one I started a long time ago when I had the same problem with 5.4. I didn't realize that thread was still active.
imJack replied on at Permalink Reply
imJack
nice. thank you! also helped me!

I also used this tool:http://www.whynopadlock.com/
That at least will give you some direction if the SSL is throwing issues even after all this other stuff is resolved.