[URL rewriting] Rediriger une page avec paramètres vers un autre nom de domaine et ce paramètre
Bonjour à tous,
Je n'arrive pas à rediriger une page contenant un paramètre vers un autre domaine et ce paramètre-là.
Pour mieux comprendre, voici un exemple :
Ma page à rediriger s'appelle http://exemple.com/index.php?param=CHIFFRE
et devrait pointer vers http://mondomaine.com/CHIFFRE.html
J'ai testé différents codes qui ne fonctionnent pas.
Code:
1 2 3 4
| RewriteRule ^index.php?param=([0-9]+)$ http://mondomaine.com/$1.html [QSA,L,R=301]
#Redirect Permanent ^index.php?param=([0-9]+)$ http://mondomaine.com/$1.html
#RewriteRule ^index.php?param=([0-9]+)$ http://mondomaine.com/$1.html [R=301,L]
#RedirectMatch 301 index.php?param=([0-9]+)$ http://mondomaine.com/$1.html |
Pouvez-vous m'aider ?
Merci d'avance.
Bien cordialement,