On a site I'm developing for a client When I run this code: RewriteCond %{QUERY_STRING} ^ca=([0-9]+) RewriteRule ^store/$ http://www.example.com/store/%1? [R=301,L] RewriteRule ^store/([0-9]+)$ /store/?ca=$1 [L] RewriteRule ^store/([0-9]+)/([a-zA-Z0-9]+)$ store/it.php?ca=$1&as=$2 [L] ##RewriteRule ^store/([0-9]+)/pg-([0-9]+)$ /store/?ca=$1&pg=$2 [L] ##Don't worry about this one Code (markup): I get an error. Everything works by itself, but not together. Trying to rewrite old: directory/?ca=123 to: directory/123 with redirect. Any help is greatly appreciated, thanks. Lpe04