In Codeigniter framework i use htaccess rewrite for redirect all url\'s to https
Codeigniter
htaccess
Then i removed index.php from url by htaccess.
index.php