Clean url’s

This site no longer uses those ugly .html extensions. Find out why by reading one or more of these resources that argue for and suggest best practices in url construction, for example Tim Berner Lee’s classic Cool URIs don’t change.

For those interested, this was done using an Apache rewrite rule:

RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME}.html -f RewriteCond %{REQUEST_URI} !/$ RewriteRule (.*) $1\.html [L]

What translates to: When the path in this request exists as a regular file if you add .html to it, then add .html to it.

Update: The second rule condition was added as a result of the discussion on Simon Willison’s Weblog.

Note: If you were looking at this page in a more modern browser like Mozilla Firefox or Safari, it would look and work better and faster.
Find out more…