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