From 63402c4235637298fc9b21e87757047a6ac20d0c Mon Sep 17 00:00:00 2001 From: btatu Date: Wed, 24 Jul 2019 16:39:54 +0200 Subject: [PATCH] Apache : rewriterule without parameters and values --- HowtoApache.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/HowtoApache.md b/HowtoApache.md index d19e0b95..d6019186 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -732,6 +732,11 @@ RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /maintenance.html [R=503,L] ErrorDocument 503 /maintenance.html Header Set Cache-Control "max-age=0, no-store" + +# Rediriger sur une page sans ses paramètres et valeurs. +RewriteCond %{REQUEST_URI} ^/index\.php$ +RewriteCond %{QUERY_STRING} ^parametre=valeur$ +RewriteRule (.*) /page-destination [QSD,R=301,L] ~~~ Pour supprimer un Query String avec une Rewrite Rule :