Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insecure link on log in page
08-20-2012, 02:07 PM,
#3
RE: Insecure link on log in page
Hi,
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
<?php

if($_SERVER["HTTPS"] != "on")
{
$newpage = "https://". $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("Location: $newpage");
exit();
}

?>
//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////

Put this php script in top of the index.php.

Best Regards
Samu
Reply


Messages In This Thread
Insecure link on log in page - by revrora - 08-19-2012, 07:22 AM
RE: Insecure link on log in page - by revrora - 08-20-2012, 07:01 AM
RE: Insecure link on log in page - by samudaya - 08-20-2012, 02:07 PM
RE: Insecure link on log in page - by revrora - 08-22-2012, 04:36 AM
RE: Insecure link on log in page - by phil - 08-27-2012, 10:07 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)