title: URL naming conventions
body: <p>So, this may be a can of worms. But I'm curious what your practices are?</p>
  
  <p>For example, let's say your website consists of the following needs (very basic):</p>
  
  <ol>
  <li>A landing page</li>
  <li>An information page for an event (static)</li>
  <li>A listing of places for that event (dynamic)</li>
  <li>An information page for each place</li>
  </ol>
  
  <p>With that said, how would you design your URLs?</p>
  
  <p>Typically, I'd do something like the following:</p>
  
  <p>www.domain.com/ - landing page [also accessible via www.domain.com/home]
  www.domain.com/event - event information page
  www.domain.com/places - listing of all places
  www.domain.com/places/{id} - place information page</p>
  
  <p>Now, here's a question. Just grammatically speaking, I have a hangup of referring to a given place in a url as being plural. Shouldn't it make more sense to go with this:</p>
  
  <p>www.domain.com/place/{id}
  as opposed to
  www.domain.com/places/{id}</p>
  
  <p>In some frameworks, you have a convention to follow (for example, ASP.NET MVC) by default. Yes, you can define custom routes to have /place/{id} route to the PlacesController. However, I'm just trying to keep this a bit abstract in discussion.</p>
  
  <p>With that being said, let's see for instance on another page of your site, you have a link, that when clicked, would open a modal popup populated with place information. Where you place that information?</p>
  
  <p>We could go with something like this:</p>
  
  <p>www.domain.com/ajax/places/{id}
  OR
  www.domain.com/places/{id} and serve based on the request header (that is, if requesting JSON, return JSON?}. </p>
  
  <p>Finally, for SEO reasons, typically I use a slug associated with a given resource. So, something like such:</p>
  
  <p>www.domain.com/ajax/places/{id}/london</p>
  
  <p>Where london is only there to add decoration to the link for SEO reasons. Is this sound?</p>
  
  <p>I ask all of these questions, because these are practices that I've been using for awhile, and I'd just like to see what other developers are doing or if I'm approaching things incorrectly.</p>
  
  <p>Thanks!</p>