I Eat Ewoks

  • Archive
  • RSS

So, what’s a good URL scheme look like?

I’m writing up a CMS for myself and I’ve been thinking about this for a while and can’t come to a good conclusion. I’d like the URLs to be functional, but also not include needless information.

The old standard for a blog is /YYYY/MM/DD/TITLE. That has some nice qualities to it. It lets people know when something was posted as well as lets people chop off the end and get to date-based indices (if you do it right).

But, the counter-argument goes, what if the date changes? Well, you have to setup a redirect. Now, I already have my CMS looking for URL-changing events and auto-creating redirects for them (yay!) so that’s no _big_ deal, but I would like to not change URLs as much as I can. The proponents of this say that the best URL is EXAMPLE.COM/TITLE-AS-A-SLUG.

Honestly, I see the point, but I think that’s over-simplifying the problem because in a blog half of the data is when it was posted. If I post tips about an OS and the date is 2007, you’ll think twice before following them. If I post about how to fix a car, then it won’t matter. But the point is that the decision goes to the user instead of making people question it and go looking for a date, or worse, not know at all.

I also thought about /SECTION/TITLE and /SECTION/YYYY/MM/DD/TITLE so that one could do multi-blogs like “news” and “blog” and so on, but then second-guessed myself with “what if I want a root-level entry?” Well, then the answer is to have Pages and Entries, right? But, what about people who want date-based URLs rooted at /… ?

Overthinking? What do you think is the best future-proof way of doing this?

  • 2 years ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

Hi. I live here.

I'm a software developer that is currently spending a great deal of time with Python, Django, Objective-C and iPhone, and various sysadminy things. When I'm not coding, I'm chasing around my little toddler son and telling him not to say that in public and please put that back on before we get kicked out.

Me, Elsewhere

  • @ahknight on Twitter
  • Facebook Profile
  • adam_knight on Flickr
  • codepoet on Delicious
  • ahknight on Last.fm
  • Linkedin Profile
  • ahknight on github

Twitter

loading tweets…

Following

I Dig These Posts

  • Photo via oatmeal

    I made some Valentine’s Day cards. There’s more here.

    Photo via oatmeal
  • Photo via neonsandserif
    Photo via neonsandserif
  • Link via jcderr
    Perry collects retirement while on state payroll

    From the Statesman:

    Perry is drawing $7,698 a month - or $92,376 a year - as a retired state...

    Link via jcderr
  • Photo via staff

    $1,000 question

    Photo via staff
See more →
  • RSS
  • Random
  • Archive
  • Mobile

© Adam Knight. Effector Theme by Carlo Franco.

Powered by Tumblr