Welcome Guest, Not a member yet? Register   Sign In
Force HTTPS for certain controllers
#3

[eluser]glemigh[/eluser]
I'm lazy, so I did this for a friends site that had pages that would not behave, although it was not a codeigniter site, but you'll get the idea.
Code:
<?php
if ( !isset($_SERVER["HTTPS"]) ) {
    echo '<meta http-equiv="refresh" content="0;url=https://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '">';
    echo "\n";
}
?>

George


Messages In This Thread
Force HTTPS for certain controllers - by El Forum - 10-15-2007, 11:00 PM
Force HTTPS for certain controllers - by El Forum - 10-16-2007, 06:11 PM
Force HTTPS for certain controllers - by El Forum - 10-16-2007, 07:13 PM
Force HTTPS for certain controllers - by El Forum - 10-17-2007, 01:50 AM
Force HTTPS for certain controllers - by El Forum - 10-17-2007, 02:24 AM
Force HTTPS for certain controllers - by El Forum - 10-17-2007, 01:21 PM
Force HTTPS for certain controllers - by El Forum - 10-17-2007, 06:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB