Changeset 1645


Ignore:
Timestamp:
05/16/06 20:08:29 (7 years ago)
Author:
benjamin
Message:

Si l'on va vers  https://mondomaine.com/admin, force a aller vers  https://fqdn/admin/, Closes #526

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/class/config.php

    r1643 r1645  
    6868 
    6969 
    70  
    7170/* PHPLIB inclusions : */ 
    7271$root="/var/alternc/bureau/"; 
     
    8079require_once($root."class/functions.php"); 
    8180require_once($root."class/variables.php"); 
     81 
     82// Redirection si appel à https://(!fqdn)/ 
     83if ($_SERVER["HTTPS"]=="on" && $host!=$L_FQDN) { 
     84  header("Location: https://$L_FQDN/"); 
     85} 
     86 
    8287 
    8388// Classe héritée de la classe db de la phplib. 
Note: See TracChangeset for help on using the changeset viewer.