Activate SSL encryption or certificate to switch from http to https

Permalink
Hi there,

I need a little help:



The page c5 version 8.3.2 I set up has been running with php 7.1 for some time.



However, still under the old http address - so far everything is correct.

Now I want to activate my SSL certificate with the hoster - and make the page accessible via https.



What do I have to enter in ---> System and Settings ---> URLs and redirects so that the page can also be reached later?

1.) Is it enough to leave the primary URL onhttp://www.meineseite.de and enterhttp://www.meineseite.de in the alternative URL?

2.) Then I would have to change the .htacces afterwards, and or reverse the entry above so that the page is only accessed with https?

3.) Can I leave the fields completely empty. The domain assignment then takes place via the hoster.

As I write this, I suspect that point 1 is already sufficient, since the certificate and encryption are activated on the server side and this only runs via https.



I don't want to lose access, maybe someone can tell me briefly whether I'm wright - or grossly wrong.

 
stewblack23 replied on at Permalink Reply
stewblack23
Hey Goldsmith

SSL encryption is all done on the server side. The only things you have to do is make sure in your .htaccess file has a redirect in it for people that might type your URL without https in the url. Also any URL that might be hard coded in your site are switched to http to https. Then just manually clear your site cache and you should be good to go. Also make sure you have pretty URL turned on.

Let me know how it goes.
Gondwana replied on at Permalink Best Answer Reply
Gondwana
I also found it necessary to specify a https canonical URL; otherwise some images wouldn't display (because c5 used http for them).
mackadmin replied on at Permalink Reply
Hi There,
I need to activate SSL encryption to switch from http to https on my page.
Would you contact me and help, please? I offer £50 for this job done safely.
# concrete5 Version
Core Version - 5.7.5.13
Version Installed - 5.7.5.10
Database Version - 20160615000000
Goldsmith replied on at Permalink Reply
Thanky you very much - you´re right!
Goldsmith replied on at Permalink Reply
And you also!



Outstanding! That was much easier than I imagined: I just added the following lines to htaccess:
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ h t t p s://m y domain/$1 [R=301,L]
.............
and
.............
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]

Now the page is only accessible via https and with pretty-url.

Unfortunately I can no longer display content from non-https sites. But that's another problem; this does´nt work:

<iframe src="h t t p : // a n y U R L .h t m " width="80%" height="750" frameborder="0" scrolling="yes"></iframe>

Does anyone have an Answer to this? I guess i have to ask the other site-owner to switch to https also?!
Goldsmith replied on at Permalink Reply
Unfortunatelly the site is still reachable with ...index.php... and without. https is working in both cases.
stewblack23 replied on at Permalink Reply
stewblack23
This is what your .htaccess file should look like

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME}/index.html !-f
    RewriteCond %{REQUEST_FILENAME}/index.php !-f
    RewriteRule . index.php [L]
    RewriteCond %{HTTP_HOST} sdagency\.net [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.sdagency.net/$1 [R,L]
</IfModule>