trying to get ssl to work |
(05-08-2018, 10:01 AM)Paradinight Wrote:I think that this is the only place where I am directly getting things from the server. But as you can see from my code, I am NOT using http or https. This is the code:(05-08-2018, 04:38 AM)InsiteFX Wrote: It has to do with ( CORS ) $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'); CI is appending the http or the https to my paths. Where do I change it from http to https?
proof that an old dog can learn new tricks
I have the HttpXML communication working fine with http. I have noticed that it doesn't work when I set the address in the HttpXML to https. Is this expected? My hoster did set up the redirect to require https. http still works.
proof that an old dog can learn new tricks
(05-08-2018, 11:56 AM)dave friend Wrote: Show the code for load::js Dave, this is the code. $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'); Is this not CI code?
proof that an old dog can learn new tricks
(05-08-2018, 11:16 AM)InsiteFX Wrote: As @Paradinight said you need to change all http:// to https:// I was searching for such a solution. Great Work !!! Tags: mod_rewrite ssl https
Dynamic Base url :
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); $config['base_url'] .= "://".$_SERVER['HTTP_HOST']; $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); .htaceess # RewriteEngine On # RewriteCond %{HTTPS} !=on # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] add this line in htaccess at top |
Welcome Guest, Not a member yet? Register Sign In |