jwatts, on May 28 2009, 08:12 PM, said:
Hi Robert,
All is running smoothly with this contribution! I have 2 general questions about its performance...
1 - Does it have to have the product id appended to the URL (is this a security measure in case 2 products have the same name)? For example, /catalog/product-name-p-123.html. Can the "-p-123" be removed?
2 - Is it possible to have each category as a "subdirectory" for the URL, or somehow include them in the URL? For example, a product "product-name" in the subcategory "subcategory" in the main category "category" would come out like /catalog/category/subcategory/product-name.html or /catalog/category-subcategory-product-name.html?
I wasn't sure if either of those could be a setting to change in .htaccess, or if that would require a lot more coding.
Thanks again for a great contribution!
Justin
Hi Justin
USU5 like the 2005 original uses -p-123 (retained for compatibility), there has to be some method of passing the products_id/cPath through to the osCommerce script .. there are other seo url contributions that use pure text .. BUT .. pure text is an intangible/unreliable whereas e.g. products_id/cPath are unique as dictated by MySQL autoincrement.
So the answer to the first question is that they are essential.
Regarding path based uris ... www.mysite.com/my/great/product/p/123 I have purposely NOT included this feature for two reasons ..
Firstly it is effectively a lie .. that directory structure does not exist and the best of the bots are not stupid (well they are they are bots but you get the idea).
Secondly it is now suggested that Google bot is stepping back through directory paths and as these paths are not real is likely to create problems.
I thought about it and I know that software such as Drupal use such paths but decided against it.
Edited by FWR Media, 28 May 2009, 19:26.