Math Jazz — Mathias Bynens’s shizzle, y’all



Note: This site might seem inactive… That’s because it is. Don’t worry though, I’m still coding webpages and stuff! If you’re interested, I suggest you get a translator and head over to Qiwi; or you could just check the latest site we’ve been working on: Apotheek Goethals – Debrabandere. Enjoy!

What’s wrong with my IRI scheme

Every single post I add to this blog, gets a unique IRI of the form http://mathiasbynens.be/archive/yyyy/mm/post-slug. Though I used to be satisfied with that scheme — after all, it’s cruft-free — I lately began to think it doesn’t suit this site’s needs.

How frequently do I make a new blog entry? Like, once a month? And then, what do I blog about? Web development related shizzle… (Except for the occasional meme, that is; I honestly can’t help being tagged all the time. Bastards!) Who gives a damn about when such an article is written if it’s not related to any date-tied events? The only thing that really matters, the true essence of a post, is its title. So much for the yyyy/mm/ part.

That other bit, /archive, doesn’t add much value to the whole IRI either. Though, it brings home to the more savvy users that the requested page is a blog entry, and not a static page (e.g. a colophon). Somehow I feel like /articles would be a much better choice in this case.
Ideally though, every post would have its own IRI base, depending on the categories it belongs to. How much better is /javascript/number-format compared to something like /archive/2006/01/js-number-format?

That’s what I’ve been thinking. However, I don’t know of an easy way of creating such an IRI scheme in WordPress easily. I could of course change all posts into pages with their own IRIs, but that would affect the home page, the syndication feeds, et cetera.

It comes down to this: I just can’t be bothered at the moment.

Filed under PHP · March 5th, 2006

Comments (13)

You can syndicate the comments on this entry through an Atom feed.

  1. Jeroen Mulder:
    This commenter’s Gravatar

    I agree. On the next version of my personal site I am switching to a category based scheme too, simply because I write way too infrequently too.

    I am afraid I can’t help you with the WordPress implementation though.

    Comment posted on March 5th, 2006 @ 7:14 pm
  2. Krijn Hoetmer:
    This commenter’s Gravatar

    Of course the problem with putting posts/pages (what’s the difference anyway?) inside a category is that sometimes it can fit under multiple categories. I have the same ‘problem’ with my stuff dir, but I cba to change it. Good to see even you can’t be either atm :)

    Comment posted on March 6th, 2006 @ 1:14 pm
  3. Ben de Groot:
    This commenter’s Gravatar

    It actually is very easy to implement in WordPress, as I did ages ago for a client where I use WP as a CMS instead of a blog. Just go to wp-admin/options-permalink.php and try the permalink structure /%category%/%postname%

    Comment posted on March 13th, 2006 @ 12:18 pm
  4. Mathias:
    This commenter’s Gravatar

    It actually is very easy to implement in WordPress, as I did ages ago for a client where I use WP as a CMS instead of a blog. Just go to wp-admin/options-permalink.php and try the permalink structure /%category%/%postname%

    That solution indeed works fine, as long as every post is added to only one category. However, as Krijn mentioned:

    […] the problem with putting posts/pages (what’s the difference anyway?) inside a category is that sometimes it can fit under multiple categories.

    Sadly, that rule very much applies to this ‘ere blog. I don’t know of an easy way to tell WordPress which of the post’s categories is the most important one, i.e. which one should be used in the permalink.

    Comment posted on March 13th, 2006 @ 6:24 pm
  5. EngLee:
    This commenter’s Gravatar

    Please be aware that if you changed your IRI scheme, those cached pages in search engine will lead to 404 in your site.

    Comment posted on March 14th, 2006 @ 7:30 am
  6. Mathias:
    This commenter’s Gravatar

    Please be aware that if you changed your IRI scheme, those cached pages in search engine will lead to 404 in your site.

    I would of couse take care of that using 301 redirects… :p

    Comment posted on March 14th, 2006 @ 5:19 pm
  7. EngLee:
    This commenter’s Gravatar

    That simply means you are already aware of it. Good!

    Comment posted on March 14th, 2006 @ 6:08 pm
  8. Oliver Zheng:
    This commenter’s Gravatar

    I thought about this for a long time too when redesigning my site. Archive doesn’t seem reasonable as it implies time — I just used articles. I still kept the /year/month/ format since /articles/%post-slug%/ might lead to multiple posts of the same slug. The categories thing is really an irony. Technically a post shouldn’t belong to more than one category (other than parent categories). If it needs more specific details, tags should do you good.

    Comment posted on March 21st, 2006 @ 7:22 pm
  9. David Collantes:
    This commenter’s Gravatar

    […] Technically a post shouldn’t belong to more than one category (other than parent categories). If it needs more specific details, tags should do you good.

    Totally agree with this one. Tags should take of things multiple category really shouldn’t. Oh boy, I really need to redesign and start writing. So much to do, so little time…

    Comment posted on March 28th, 2006 @ 9:56 pm
  10. El Bandano:
    This commenter’s Gravatar

    I didn’t know where to post this, it’s about your blogmarks.
    FRAPS sucks.

    Comment posted on June 6th, 2006 @ 1:09 pm
  11. charaj:
    This commenter’s Gravatar

    I love the way El Bandano, aka Philips The Great, just posts a comment that has nothing to do with all te technical things, and just says what he wants to say!
    I’m doing the same right now!
    But that’s just because I don’t really understand a thing of what you and your homies are saying.

    I want to be more intelligent than I am…
    Yes! I’m jealous!
    So, buddy, goodbye!
    And to say something really stupid:
    ‘Keep up the good work!’

    Sebiet Poepe’ Wij Hier!

    Comment posted on June 22nd, 2006 @ 4:43 pm
  12. Bennett:
    This commenter’s Gravatar

    I don’t know of an easy way to tell WordPress which of the post’s categories is the most important one, i.e. which one should be used in the permalink.

    Well, the Top Cat plugin lets you specify which category is the most important for each post. I’ll see if I can augment it to ensure that %category% in permalinks always refers to the main category. At last I might be able to make Top Cat useful to somebody other that myself!

    Comment posted on August 17th, 2006 @ 1:25 am
  13. David Collantes:
    This commenter’s Gravatar

    This doesn’t relate. But it has been a year… where are you Mathias? Still alive and kicking? Let me (us) know.

    Comment posted on May 11th, 2007 @ 4:07 pm

Trackbacks & Pingbacks (2)

Listed below are resources on the web that mention this article.

  1. My URI scheme at Troidus:
    This commenter’s Gravatar

    […] After reading Mathias’ rant about his URI (URL, URI, IRI, what the hell?), I’ve decided to choose something simple for my site as well. […]

    Pingback made on March 11th, 2006 @ 1:24 pm
  2. Collantes.US — Entries — Math Jazz: What’s wrong with my IRI scheme:
    This commenter’s Gravatar

    […] What’s wrong with my IRI scheme […]

    Pingback made on December 28th, 2007 @ 1:50 pm