Apache : rewriterule without parameters and values
This commit is contained in:
parent
a590201cc9
commit
63402c4235
|
@ -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 :
|
||||
|
|
Loading…
Reference in a new issue