$siteName = "fotostart"; if ($_SERVER["HTTP_HOST"] == "".$siteName.".dk") { header('Location: https://www.'.$siteName.'.dk/'); } if($_SERVER['SERVER_NAME'] != "localhost") { // localhost development if(empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] !== "on") { header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); exit(); } } ?>
