js: RedirectMatch funktioniert nicht mit Argumenten

Beitrag lesen

Hallo,

wie kann ich einen Redirect von

/mypath1/index.htm?foo=2

nach

http://www.mysite.de/mypath2/index.php?bar=2

Ich habe folgendes versucht:

RedirectMatch ^/mypath1/index.htm.*foo=2$ http://www.mysite.de/mypath2/index.php?bar=2

Aber daraus wird leider ein:

http://www.mysite.de/mypath2/index.php?bar=2?foo=2

Hat jemand einen Tipp fuer mich?