JOAOSANTACRUZ.COM

PHP - Force a page to go on https

Force a page to run on HTTPS protocol


						

if ($_SERVER['HTTPS']!='on') {
    header("location: https://".$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]);
}
 

Go Back