• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Force SSL for the site

#1
Hello all!

I have a CI based site with an SSL certificate but it's not fully connecting and it's not loading everything properly..how do I force the https to work on the site?

Heart Heart ,
Mekaboo
Reply

#2
Hi, what platform? cPanel has this kind of redirect built in. Could also force HTTPS in .htacess (which you can google).

Make sure to set your $config['base_url']
in application/config/config.php

to your https base url.

I also redirect www URL's as well in .htacess.
Reply

#3
(02-18-2020, 09:35 AM)dbrooke Wrote: Hi, what platform? cPanel has this kind of redirect built in. Could also force HTTPS in .htacess (which you can google).

Make sure to set your $config['base_url']
in application/config/config.php

to your https base url.

I also redirect www URL's as well in .htacess.
Thank ya kindly  Heart

I have a Cpanel (HostGator)...will look into that later on as well as changing things within the config file. Thanks again!!!
Reply

#4
You need to change all http calls to https, if you use base_url then just changing that
should fix all the rest.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#5
(02-18-2020, 04:32 PM)InsiteFX Wrote: You need to change all http calls to https, if you use base_url then just changing that
should fix all the rest.
Thank ya kindly  Heart

Will make adjustment very soon!!!
Reply

#6
(02-18-2020, 09:40 AM)Mekaboo Wrote: Thank ya kindly  Heart

I have a Cpanel (HostGator)...will look into that later on as well as changing things within the config file. Thanks again!!!


It's in the 'Domains' utility (force https redirect).
Reply

#7
(02-19-2020, 09:51 AM)dbrooke Wrote:
(02-18-2020, 09:40 AM)Mekaboo Wrote: Thank ya kindly  Heart

I have a Cpanel (HostGator)...will look into that later on as well as changing things within the config file. Thanks again!!!


It's in the 'Domains' utility (force https redirect).
I changed the base url and it worked Smile
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.