This hook will force users to use your HTTPS version of the website, it will also set some extra headers.
More details here:
https://github.com/mehdibo/Codeigniter-SSLHook
More details here:
https://github.com/mehdibo/Codeigniter-SSLHook