PHP – For secure HTTP connection

This trick force for a secure HTTP connection

   if (!($HTTPS == “on”)) {
header (”Location: https://$SERVER_NAME$php_SELF”);
exit;
}  

Post Comment
Login to post comments