Si l'on va vers https://mondomaine.com/admin, force a aller vers https://fqdn/admin/, Closes #526
This commit is contained in:
parent
43e0914b35
commit
6a877e1008
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue