CodeIgniter Forums
SSL Certificate and mixed content - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: SSL Certificate and mixed content (/thread-67314.html)



SSL Certificate and mixed content - lisulosoko - 02-09-2017

hello, i am having trouble making my website secure. i have activated the SSL on with my web host provider and have redirected the domain using htaccess by copying this code;

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

but now the website is saying it is partially secure. What does this mean and how can i resolve it?


RE: SSL Certificate and mixed content - Krycek - 02-09-2017

Could be that you are loading (for example) google fonts from http://

https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content


RE: SSL Certificate and mixed content - Paradinight - 02-09-2017

(02-09-2017, 09:46 AM)[email protected] Wrote: hello, i am having trouble making my website secure. i have activated the SSL on with my web host provider and have redirected the domain using htaccess by copying this code;

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

but now the website is saying it is partially secure. What does this mean and how can i resolve it?


Check the network in the developer console (F12)


RE: SSL Certificate and mixed content - usmanikram - 02-09-2017

(02-09-2017, 09:46 AM)[email protected] Wrote: hello, i am having trouble making my website secure. i have activated the SSL on with my web host provider and have redirected the domain using htaccess by copying this code;

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

but now the website is saying it is partially secure. What does this mean and how can i resolve it?

This issue comes when your website url is https and you are loading some js or css files with http.

Change all the links from http to https


RE: SSL Certificate and mixed content - ragingTorch - 02-09-2017

It could also be due to a form submitting to http url. I suggest you use https://www.whynopadlock.com to find out the reason(s), it's a very handy tool.


RE: SSL Certificate and mixed content - Code4fun - 02-10-2017

PHP Code:
$config['base_url'] = 'https://your.domain.name/'

That's where I would start.