How to replace %26 for & on htaccess

I need to substitute the character %26 for & and %3D for = in my URL:

http://www.example.com/dir/?sort-by=title%26listing_types%3Dcars

I tried the rewrite below but it does not work

RewriteRule ^dir/?$ ?sort-by=$1&listing-types=$2 [QSA,L]

Any help will be welcome

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.