From 81c4d8bc625deb34da3f2eaf52ae51f5562d87ff Mon Sep 17 00:00:00 2001 From: btatu Date: Thu, 7 Nov 2019 18:06:56 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20r=C3=A8gle=20RewriteCond=20pour?= =?UTF-8?q?=20substituer=20un=20caract=C3=A8re=20dans=20une=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoApache.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HowtoApache.md b/HowtoApache.md index a1f16401..1587b12f 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -780,6 +780,10 @@ Header Set Cache-Control "max-age=0, no-store" RewriteCond %{REQUEST_URI} ^/index\.php$ RewriteCond %{QUERY_STRING} ^parametre=valeur$ RewriteRule (.*) /page-destination [QSD,R=301,L] + +# Substituer un caractère (tel que page.php/ en page.php? ) : +RewriteCond %{REQUEST_URI} (.*page.php)\/(key=.*) +RewriteRule (.*) /%1?%2 [QSD,R=301,L] ~~~ Pour supprimer un Query String avec une Rewrite Rule :