As a web developer, you will likely need to be involved in a conversation about URL structure.
Ideally, a URL structure will work great for users, crawlers, and will be super easy to maintain. Making this a reality is definitely possible, however, some strategic thinking is definitely required in the planning stage.
So, the question arises — should you structure your site, using a tree or flat URL structure? To nest or not to nest? That is today’s question.
Image by Content King
Before we discuss how to organize URLs, let’s quickly recap the components of one:
Best practices include keeping the directory names short, to allow URLs being as short as possible. According to Ryte Wiki:
If you want a URL to appear in the search results complete and not truncated, it should be a maximum of 74 characters. Shorter URL can help to increase the Click Through Rate of the snippet.