Enable SSL in Bludit
- abdulhalim
- Master Bludit
- Posts: 128
- Joined: Thu Mar 10, 2016 6:25 pm
- Location: Bandar Abbas
- Been thanked: 4 times
- Contact:
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
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
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
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.
You can check the content with the developer tools in Chrome.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
I think you will have no problems using this:
It works very well for me.
Code: Select all
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
- abdulhalim
- Master Bludit
- Posts: 128
- Joined: Thu Mar 10, 2016 6:25 pm
- Location: Bandar Abbas
- Been thanked: 4 times
- Contact:
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
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
Hello
@kosi77
In which file, have I to paste this code ?
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
@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]
I've to know if this code is the solution
Thank you for your help
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
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?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
You could try with excplicitly adding HSTS to headers so that all requests over http protocol are automatically and silently switched to https.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
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