I am creating a website with products, each of which belongs to one or more categories that can be nested in the parent categories. I would like to have SEO oriented URLs that look like this:
- mysite.com/category/
- mysite.com/category/product
- mysite.com/category/sub-category/
- mysite.com/category/sub-category/product
My question is: is it safe to depend on having a trailing slash to distinguish cases 2 and 3? Can I always assume that a user wants to index a category when a trailing slash is detected, compared to a specific product page without a trailing slash?
I am not worried about implementing this URI scheme; I have already done a lot with PHP and mod_rewrite. I just wonder if anyone knows of any objections to such URL routing. Are there any known issues with browsers clearing / adding return URLs from the address bar or with search engines crawling such a site? Any SEO issues or other stumbling blocks I'm likely to encounter?
source
share