I'm working with a script, where regex will be used to turn all urls of a certain format, into SEO-friendly urls.
product/2930.html (though this will eventually show the actual product name, but that's later...)
I need htaccess rules that could match:
and map it to the original url.
Also, an attempt to reach:
should redirect to the new SEO url.
There's one more catch, if there are additional variables in the url, I need a suggestion on how to capture those additional variables and pass them to the SEO url (this is optional, not required to win the points). i.e. - product.php?productid=2930&cat=252