X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=scripts%2Flistes_redirect.php;h=8c3f94858bb00f2ebdf4130af67a648ac2756d7f;hb=4869f6657c664e6e968f30ea7c39c0cb7e627d3d;hp=4a93889b450590a057eda3fcba07ef0a8071bc66;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/scripts/listes_redirect.php b/scripts/listes_redirect.php index 4a93889..8c3f948 100644 --- a/scripts/listes_redirect.php +++ b/scripts/listes_redirect.php @@ -7,12 +7,12 @@ if (empty($matches)) { $mbox = $matches[2]; $fqdn = strtolower($matches[3]); if ($fqdn == 'polytechnique.org') { - header("Location: https://www.polytechnique.org/listes/$action.php?liste=$mbox"); + header("Location: https://www.polytechnique.org/lists/$action/$mbox"); } else { require("../include/xorg.inc.php"); $res = $globals->xdb->query("select diminutif from groupex.asso where mail_domain = {?}", $fqdn); if ($gpx = $res->fetchOneCell()) { - header("Location: http://www.polytechnique.net/$gpx/listes-$action.php?liste=$mbox"); + header("Location: http://www.polytechnique.net/$gpx/lists/$action/$mbox"); } } }