no, there is no law or rule or even best practice, that urls should match the folder structure and/or category structure, and, further, breadcrumb structure. An example:
Your folder structure could be:
/public_html
/public_html/index.html
/public_html/category-1.html
/public_html/category-2.html
/public_html/subcategory-3.html
/public_html/subcategory-4.html
/public_html/product-1.html
/public_html/product-2.html
/public_html/contact.html
/public_html/imprint.html
Your urls structure could be:
example.com/category1-product1/
or
example.com/category2/product2/
or
example.com/product1?cat=1&subcat=3
or
example.com/imprint?ref=product1
Note: this urls structure is not native
for the folder structure i cited above, but it is possible through usage of url rewrite rules, available for all webservers and CMSs. A native
url structure would match the folder structure in the way, like:
- Folder path: /public_html/index.html
- URL: example.com/index.html
and so on.
Your breadcrumb structure could be:
- for
index.html
- Home
- for
category-1.html
- Home → T-Shirts
- for
product-1.html
- Home → T-Shirts → Bart Simpson Black XXL T-Shirt Unisex
The mainly importent characteristics of these structures in terms of SEO are:
- are the structures match each other on the for user understandable way? Are they logically consistent? Do they produce many bounces?
- is googlebot able to crawl the folder structure?
- Is nothing blocked against crawling?
- Isn't the folder structure too much nested? Like
/publik_html/web667/home/website/english/us/category-1/subcategory-1/produkt-1/
- Are the file name not too long? Like
bart-simpson-black-xxl-unisex-t-shirt-mega-discount-price-only-today.html
- are urls
speaking
? can user correctly predict, whether they get expecting information visiting this or that url?
- how documents are interlinked with each other,
- how fast can all documents be achieved from the entrance point (not only from the homepage!)