I have some pages in my website which don't have user friendly URL. for eg.
www.mysite.com/index.php?route=product/category&path=68&vendorId=Cookie%20Dough
So I want to change it directly to www.mysite.com/Cookie-Dough
by using .htaccess.
so far I have hard coded following code in my .htaccess.
RewriteRule ^Cookie-Dough index.php?route=product/category&path=68&vendorId=Cookie%20Dough [NC,L]
which is working fine. But the problem is my vendor ids can change, so I want it dynamic. suppose if I have another URL like
www.mysite.com/index.php?route=product/category&path=68&vendorId=JELLY%20BEANZ
than I want it to be www.mysite.com/JELLY-BEANZ
without hardcoding the code in .htaccess.
any help would be appreciated.