My application has products and categories. I'm currently writing the SEF URL module. What is the best way to lay out the SEF URL? Here are some examples:
(12 = categoryid, 35 = productid on all below examples)
I need the categoryid and the productid so I can find the product and category.
Should I try to stuff the category name in to the URL as well as the product name or is that just too much text?
Should I put the category name and/or product name closer to the domain name or does it not matter?
Is it better to have the last entry a file or a directory (as in option 1 vs. option 2)?
I appreciate any advice or links you can provide.