Ajout d'une règle RewriteCond pour substituer un caractère dans une url
This commit is contained in:
parent
7c9b22220e
commit
81c4d8bc62
|
@ -780,6 +780,10 @@ Header Set Cache-Control "max-age=0, no-store"
|
||||||
RewriteCond %{REQUEST_URI} ^/index\.php$
|
RewriteCond %{REQUEST_URI} ^/index\.php$
|
||||||
RewriteCond %{QUERY_STRING} ^parametre=valeur$
|
RewriteCond %{QUERY_STRING} ^parametre=valeur$
|
||||||
RewriteRule (.*) /page-destination [QSD,R=301,L]
|
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 :
|
Pour supprimer un Query String avec une Rewrite Rule :
|
||||||
|
|
Loading…
Reference in a new issue