I want to redirect the http://xyz.com/freebooks/ to http://xyz.com/shop/?min_price=0&max_price=0
I added this to the .htaccess and it redirects to the shop page but doesn't retain the /freebooks/ or filters like the original url.
.htaccees.htaccees:
RewriteEngine On
RewriteRule ^freebooks$ index.php?p=5&min_price=0&max_price=0 [NC,L]
BEGIN WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
END WordPress
ResutingResulting URL: xyz.com/shop/
expectedxyz.com/shop/
Expected URL: xyz.com/freeabooksxyz.com/freeabooks
(with the shop showing only freebooks)