I am using codeigniter 3. How do I force SSL connection to my web pages so that all the pages are loaded with the green padlock icon beside it?
Note: How can I do th
Codeigniter(GAE): best practice to redirect http to https in the ssl.php file:
function force_ssl() { $server=$_SERVER["SERVER_NAME"]; $uri=$_SERVER["REQUEST_URI"]; if ($_SERVER['HTTPS'] == 'off') { redirect("https://{$server}{$uri}"); } }