I have a url like this:
http://mydomain.es/foro.php?topic=9
And I want to redirect it to:
http://mydomain.es/foro/9/
But I can't get it to work, I have tried something like:
redirectMatch 302 ^/foro.php\?topic=([0-9]+)$ /foro/$1/
But it don't work, the problem is the character ?, if i remove it in the url (and use a redirectMarch like
redirectMatch 302 ^/foro.phptopic=([0-9]+)$ /foro/$1/)
it works fine, can you help me? I'm going crazy.