I am looking for an article or tutorial on how to implement url rewriting in a database driven store. I am creating url parameters that are stored in the database and can be called like so www.somestore.com/product.php?category=urlparameter&subcategory=urlparameter&product=urlparameter
and rewritten to www.somestore.com/category/subcategory/product
where some products do not have subcategories.
I believe that I have to create my links in the html in the form of www.somestore.com/category/subcategory/product
which I can do dynamically from the database but I need something to help me to get me over the next step of creating the htaccess file (?) etc.