Bonsoir tout le monde,
J'aimerais faire une redirection permanente avec la commande redirectMatch, mais ça marche pas.
Dans mon fichier .htaccess j'ai cette réécriture URL suivante:
RewriteRule ^location-(.*)-([0-9]+)$ produit.php?product_id=$2&slocation=p
Donc des URL de type location-mot1-mot2-mot3-88 fonctionnent très bien, mais comment faire pour rediriger cette URL vers location-mot1-mot2-mot4-88, c'est à dire remplacer mot3 par mot4.
J'ai essayé la syntaxe suivante, mais rien ne se passe:
RedirectMatch 301 ^location-(.*)-mot3-([0-9]+)$ /location-$1-mot4-$2
Merci d'avance.
Partager