Bonjour,

Voila, je n'arrive pas à comprendre un truc,

j'ai une url qui se présente comme ceci :

http://sousdomaine.ledomaine.com/dossier1/
http://sousdomaine.ledomaine.com/dossier3/
http://sousdomaine.ledomaine.com/etc./

et une autre :

http://sousdomaine.ledomaine.com/aide/

je cherche à l'aide d'une expression à accepter l'exception du dossier "aide"

voici la synthaxe :
// Si non connecté , redirection à l'accueil, sauf dossier aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 if ((!isset($_SESSION["_Authorized"])) and (preg_match('/sousdomaine\/$[^\/aide\/]/i', $_SERVER['REQUEST_URI'].$_SERVER['HTTP_HOST']))) {
   header('Location: http://www.domaine.com/');
 }
Merci d'avance pour votre aide.