diff --git a/bureau/class/config.php b/bureau/class/config.php index ff2b1894..02def355 100644 --- a/bureau/class/config.php +++ b/bureau/class/config.php @@ -67,7 +67,6 @@ if (ini_get("safe_mode")) { } - /* PHPLIB inclusions : */ $root="/var/alternc/bureau/"; /* Server Domain Name */ @@ -80,6 +79,12 @@ require_once($root."class/db_mysql.php"); require_once($root."class/functions.php"); require_once($root."class/variables.php"); +// Redirection si appel à https://(!fqdn)/ +if ($_SERVER["HTTPS"]=="on" && $host!=$L_FQDN) { + header("Location: https://$L_FQDN/"); +} + + // Classe héritée de la classe db de la phplib. /** * Class for MySQL management in the bureau