apache - htaccess url redirect (character "?") -
i have url this:
http://mydomain.es/foro.php?topic=9
and want redirect to:
http://mydomain.es/foro/9/
but can't work, have tried like:
redirectmatch 302 ^/foro.php\?topic=([0-9]+)$ /foro/$1/
but don't work, problem character ?, if remove in url (and use redirectmarch
redirectmatch 302 ^/foro.phptopic=([0-9]+)$ /foro/$1/)
it works fine, can me? i'm going crazy.
answered here - query strings not supported rewritematch. use mod_rewrite instead.
Comments
Post a Comment