if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === "off") { $httpsUrl = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header("Location: $httpsUrl"); exit; } header("Expires: Fri, 01 Jan 2010 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); ?>