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.