I have a membership program written with PHP and using mysql where users input their product information to be displayed on public webpages with URLs that look like this:
http://domain.com/folder/page.php?id=62&template=7
I want to use mod_rewrite to convert the pages to:
http://domain.com/folder/62/7
The id could be any number from 1 through 10,000, and the template could be any number from 1-100. How would the mod_rewrite rule or condition look? And if I needed to write PHP code to include with the mod_rewrite rule to handle multiple ids and multiple templates, what code would accompany the mod_rewrite?
.htaccess: