I am trying to redirect url using this condition
RewriteCond %{HTTP_HOST} ^www.example.com/xyz/Pianos-212--0$
RewriteRule ^(.*)$ http://www.example.com/xyz/Pianos-212/ [R=301,L]
the output i get is this
www.example.com/xyz/Pianos-212/?getCategory=$1&getBrand=$2
I need output URL to look like this
http://www.example.com/xyz/Pianos-212/
I am sure there is one line written above my condition that looks like this
RewriteRule ".*-([0-9]+)-.*-([0-9]+)" category.php?getCategory=$1&getBrand=$2 [L]
It is automatically appending query string after rewritten url