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)
1. domain.com/12/35/product-name.php
2. domain.com/12/35/product-name
3. domain.com/12/35/product-name/
4. domain.com/product-name/12/35
5. domain.com/category-name/12/product-name/35
6. domain.com/category-name/product-name/12/25
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.
Thanks





Bookmarks