News for hackers. Stuff that matters.
Re:Cool URIs don't change. by mkopinsky on Monday June 25, 2012 @01:20AM (#4155207)
However, http://www.w3.org/Provider/Style/URI/ does not work. I guess this makes some sense, but certainly violates the "typical" functionality on the web where trailing slashes are ignored.
Re:Cool URIs don't change. by Zr40 on Monday June 25, 2012 @02:37AM (#4155381)
Actually, this behavior you're referring to is a combination of trying to access a directory (to which a missing trailing slash is automatically appended) and the use of default pages (for Apache, that's the DirectoryIndex directive). Trailing slashes on files is not valid, because files are not directories.
Re:Cool URIs don't change. by alanh on Monday June 25, 2012 @02:14AM (#4155319)
Agreed. That’s a rule I mention in my piece, “URL as UI”, which I really want everyone to read. (If it feels like self-promotion, then please kindly ignore my username / blog masthead. I only care about these ideas.) http://alanhogan.com/url-as-ui
Re:Cool URIs don't change. by adavies42 on Monday June 25, 2012 @09:49AM (#4156457)
> Gracefully handle 404s.

> [...]

> Consider linking to your home page and/or site map [...]

For a second I thought you were advocating redirecting 404s to the homepage, and I was about to flame you. I hate that one, and I think it's harmful enough that you probably ought to have a point about not doing it in that article.

Re:Cool URIs don't change. by dullcrisp on Monday June 25, 2012 @01:42AM (#4155242)
That's not true everywhere. For example, http://en.wikipedia.org/wiki/Wikipedia/.
Re:Cool URIs don't change. by notatoad on Monday June 25, 2012 @02:04AM (#4155292)
Obviously it isn't true everywhere, it's a convention not a hard rule. If Wikipedia were friendlier they'd do a redirect there instead of 404-ing.
Re:Cool URIs don't change. by m_for_monkey on Monday June 25, 2012 @04:07AM (#4155572)