trying to get ssl to work |
I am trying to get ssl working on my site. I got this message from support:
Visiting https://substantiator.com/rndcontroller/sub_crud/ in Firefox and pressing F12 shows a bunch of mixed-content errors: Blocked loading mixed active content “http://substantiator.com/rndcontroller/sub_crud/assets/themes/default/hero_files/bootstrap-collapse.js” Blocked loading mixed active content “http://substantiator.com/rndcontroller/sub_crud/assets/themes/default/hero_files/bootstrap.css” Blocked loading mixed active content “http://substantiator.com/rndcontroller/sub_crud/assets/themes/default/hero_files/bootstrap-responsive.css” etc. I guess these need to be https:// But I am not setting this my CI code is actually: $this->load->js('assets/themes/default/js/jquery-1.9.1.min.js'); $this->load->js('assets/themes/default/hero_files/bootstrap-transition.js'); $this->load->js('assets/themes/default/hero_files/bootstrap-collapse.js'); $this->load->js('js/jquery.orgchart.js'); // for charts Notice that I don't have either http or https. How can I fixed this?
proof that an old dog can learn new tricks
Hi
Have you updated your $config['base_url'] with the new protocol ? https instead of http
servin, I didn't. Now I did but no change. The tech support person mentioned:
I'd suggest adding htaccess rule to force http:// -> https:// redirection too Do you have any idea how to do that?
proof that an old dog can learn new tricks
Don't know what you mean by that? Is there a config rule for that?
This is what is hard coded: $this->load->js('assets/themes/default/js/jquery-1.9.1.min.js'); $this->load->js('assets/themes/default/hero_files/bootstrap-transition.js'); $this->load->js('assets/themes/default/hero_files/bootstrap-collapse.js');
proof that an old dog can learn new tricks
It has to do with ( CORS )
Cross-Origin Resource Sharing (CORS) What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Thanks Insite. Can you tell me how to modify htaccess to force http:// -> https:// redirection ?
I can get in either way now, secure or not secure. But do I still need to be concerned with these errors: Visiting https://substantiator.com/rndcontroller/sub_crud/ in Firefox and pressing F12 shows a bunch of mixed-content errors: Blocked loading mixed active content “http://substantiator.com/rndcontroller/sub_crud/assets/themes/default/hero_files/bootstrap-collapse.js” Blocked loading mixed active content “http://substantiator.com/rndcontroller/sub_crud/assets/themes/default/hero_files/bootstrap.css” Blocked loading mixed active content “http://substantiator.com/rndcontroller/sub_crud/assets/themes/default/hero_files/bootstrap-responsive.css” etc. Once I lock down the sub_crud directory to be https, will I no longer be able to use this, for example: http://substantiator.com/rndcontroller/sub_crud/assets/themes/default/hero_files/bootstrap.css” ??
proof that an old dog can learn new tricks
(05-08-2018, 04:38 AM)InsiteFX Wrote: It has to do with ( CORS ) very wrong... @richb201 if you use https://, you can not use http://. Change all url from http to https...
As @Paradinight said you need to change all http:// to https://
This is a modified .htaccess file I use from FuelPHP it works great. I had to use this when I went https:// because of Fontawesome problems. Code: <IfModule mod_rewrite.c> What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |