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 :