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:
Your urls structure could be:
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
nativeurl 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:
Home → T-Shirts
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
- Are the file name not too long? Like
- 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!)