X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Flistes_redirect.php;h=3b9191fc50e0b97db0b3ed32f0e5e39c876d0827;hb=558662bce05a7ffaaadea79514fd8d4cd9f52315;hp=c3eba9918da7f54b06391f66038cbf779893b850;hpb=19413120e7b787f9e16f7ee1e81c6ea62eaa0acd;p=platal.git diff --git a/htdocs/listes_redirect.php b/htdocs/listes_redirect.php index c3eba99..3b9191f 100644 --- a/htdocs/listes_redirect.php +++ b/htdocs/listes_redirect.php @@ -21,7 +21,7 @@ require_once dirname(__FILE__).'/../include/xorg.inc.php'; -preg_match('/^\/(moderate|admin|members|archives)\/(.*)_([^_]*)(/.*)?$/', $_SERVER['REQUEST_URI'], $matches); +preg_match('!^/(moderate|admin|members|archives)/(.*)_([^_]*)(/.*)?$!', $_SERVER['REQUEST_URI'], $matches); if ($matches) { @@ -29,7 +29,7 @@ if ($matches) { $mbox = $matches[2]; $fqdn = strtolower($matches[3]); $sup = $matches[4]; - + if ($fqdn == 'polytechnique.org') { http_redirect("https://www.polytechnique.org/lists/$action/$mbox$sup"); }