Simon Willison’s Weblog

Subscribe

Wednesday, 6th August 2003

More links

Clearing out another several days worth of tabs. Some day I’m gonna get me a link-roll.

Neat tip for clean URLs

Here’s one of the neatest tips for clean URLs I’ve seen yet, from Thijs van der Vossen. He’s come up with a mod_rewrite rule that checks to see if the requested file exists if you add .html on to the end of it, and serves it up if that’s the case. I’m posting the full code snippet here because it’s just too good to risk losing to link-rot in the distant future:

[... 88 words]

2003 » August

MTWTFSS
    123
45678910
11121314151617
18192021222324
25262728293031