From 97bb7ca72801b3229ca9159ade771b7ea6f6df2c Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Fri, 15 Apr 2005 15:23:34 +0000 Subject: [PATCH] bug redirection URLs old-style avec des arguments (Mortimer) --- inc-urls-propres.php3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc-urls-propres.php3 b/inc-urls-propres.php3 index 29a8038b32..0a8df0b37e 100644 --- a/inc-urls-propres.php3 +++ b/inc-urls-propres.php3 @@ -189,7 +189,10 @@ preg_match(',(^|/)((article|breve|rubrique|mot|auteur)(\.php3?|[0-9]+\.html)([?& if ($url_propre AND ($url_propre<>$regs[2])) { http_status(301); - Header("Location: $url_propre"); + // recuperer les arguments supplementaires (&debut_xxx=...) + $reste = preg_replace('/^&/','?', + preg_replace("/[?&]id_$type=$id_objet/",'',$regs[5])); + Header("Location: $url_propre$reste"); exit; } } -- GitLab