URL Structure (Web Development)


Examples of URL structure

  • Examples:
  • Thoughts:
    • Subdomains are used for major divisions of the website.
    • There's a single namespacing-entry after the domain which allows the website to separate out their main content from all the other stuff they need to have on the site.
      • 'wikipedia.org/wiki/name_of_the_page'
      • 'stackexchange.com/questions/constant_id_of_the_page'
        • Interestingly, with stackexchange they have a constant ID which allows the user to change the name of the post (and thus the descriptive URL), whereas with Facebook you can change your username and thus change the URL to your page.
        • I suspect the key here is that StackExchange questions are more likely to be both 1) pasted/sent via email, in chat rooms, etc. and at the same time 2) have their titles changed. The combination of those two things makes it worth having a constant identifier.
          • Contrast that with Wikipedia, where articles' names tend to stay pretty constant, and I doubt they get sent around quite as much as a StackExchange answer.




Articles