Return to Snippet

Revision: 5676
at March 25, 2008 10:40 by gbot


Initial Code
//force redirect to secure page
if($_SERVER['SERVER_PORT'] != '443') 
{ header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);      exit();
}

Initial URL

                                

Initial Description

                                

Initial Title
force page to ssl

Initial Tags

                                

Initial Language
PHP