Can't get SSL to work at all with Concrete5

Permalink 1 user found helpful
I can't get SSL to work at all with Concrete5, I know it's installed and working because I can add a static html file to the server and that works as https. However when I try and accesshttp://mydomain.com the site simply redirects to the non secure http. Any thoughts?

I've tried editing the .htaccess file...

RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule (.*)https://%{HTTP_HOST}%{REQUEST_URI}... [R,L]

This is what gives the never ending loop error
"Too many redirects occurred trying to open "http://doman.com/". This might occur if you open a page that is redirected to another page which then is redirected to pen the original page"

And the site php define url, with not luck at all, the site simply times out and doesn't load.

Any ideas?

 
admin replied on at Permalink Reply
Almost two years later I'm having the same problem.

Has anyone else encountered this? Any solutions? Ideas?
verb replied on at Permalink Reply
I never found a reason why this never worked, however I did find a work around. I simply used the "force SSL" plugin on pages I wanted encrypted, this seems to work for me with no issues and the developer of "Force SSL" was excellent and fast when the plugin needed upgrading.

Good luck!
exchangecore replied on at Permalink Reply
exchangecore
We have it working fine for us. In /config/site.php make sure you have the following:

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


And here's what we have our htaccess looking like:

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTPS} off
RewriteRule ^/?(.*)$ https://www.example.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) https://www.example.com/$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
admin replied on at Permalink Reply
Thank you for your responses. I do already have the /config/site.php modified as you indicate. However, I either don't have htaccess or don't know where it is. Any tips to locate it or what to do if my server does not have one?
exchangecore replied on at Permalink Reply
exchangecore
Should be in the root of your site.
admin replied on at Permalink Reply
Unfortunately, it is not.

Is there a simple way to create that file? Or another way to effect the workaround you shared?

Is there something in concrete5 that causes the issue in the first place that I can correct?

Thanks again for your time and assistance!
exchangecore replied on at Permalink Reply
exchangecore
You could try turning on pretty URL's in the dashboard to see if that creates the .htaccess file. or you could just manually create it in the root of your site (where index.php sits).
mhawke replied on at Permalink Reply
mhawke
On one server, I had to add this line to my /config/site.php file but I can't remember why.

define('URL_REWRITING_ALL',true);