Page 1 of 1

Enable SSL in Bludit

Posted: Mon Feb 10, 2020 9:06 pm
by abdulhalim
Hello Guys,

Recently I changed my Webhosting, the major change in my new host is cPanel -> DirectAdmin, So everything is OK now.
I need to enable SSL, I did everything in the server-side, my question is: Do I need to migrator plugin? or the only changing the URL in the site.php is enough?
And by this changing website works fine but the SSL lock warns that website has mixed-content (Parts of this page is not secure ...), how can I resolve this message from FF?

https://bludit.ir/blog/
https://docs.bludit.ir/

Regards,
Abdulhalim

Re: Enable SSL in Bludit

Posted: Tue Feb 11, 2020 12:35 pm
by Edi
The logo in the top navigation bar has the URL http://bludit.ir/img/bludit-logo.svg and is therefore not secured. You have to fix it in the theme.

You can check the content with the developer tools in Chrome.

Re: Enable SSL in Bludit

Posted: Fri Feb 21, 2020 7:07 am
by kosi77
I think you will have no problems using this:

Code: Select all

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
It works very well for me.

Re: Enable SSL in Bludit

Posted: Fri Feb 21, 2020 4:17 pm
by abdulhalim
Thank you for respond
I did it before but I had some mixed-content, actually, I had some menu links and content in HTTP, I change them to https, so everything is work perfectly

Re: Enable SSL in Bludit

Posted: Mon Aug 31, 2020 12:55 pm
by Stratego
Hello

@kosi77

In which file, have I to paste this code ?


Code: Select all

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
In fact, I've installed SSL certicication (hosting side) but my website still unsecured.

I've to know if this code is the solution

Thank you for your help

Re: Enable SSL in Bludit

Posted: Mon Aug 31, 2020 2:06 pm
by Edi
Stratego wrote: Mon Aug 31, 2020 12:55 pm In fact, I've installed SSL certicication (hosting side) but my website still unsecured.
Have you set http to https at "Settings" > "General" > "Advanced" > "Site URL"?

The redirect from http to https can often be set in the admin panel. Which admin panel is installed?

Re: Enable SSL in Bludit

Posted: Tue Sep 01, 2020 3:20 pm
by Jay
abdulhalim wrote: Fri Feb 21, 2020 4:17 pm Thank you for respond
I did it before but I had some mixed-content, actually, I had some menu links and content in HTTP, I change them to https, so everything is work perfectly
You could try with excplicitly adding HSTS to headers so that all requests over http protocol are automatically and silently switched to https.
This should work with all existing hardcoded content without the hassle to edit it again.

You could try to add below line to your htaccess file

Code: Select all

Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
I didn't test it with mixed content as all my content is served through https since the beginning. Would be great to know if it works on different hosting environments.

Re: Enable SSL in Bludit

Posted: Thu Apr 07, 2022 3:12 pm
by nick13
Thank you EDI
(Have you set http to https at "Settings" > "General" > "Advanced" > "Site URL"?)
This line helped me.
I had same issue with my ssl certificate on my web housting.