Author name: Dan Langille

I've been playing with Open Source software, starting with FreeBSD, since New Zealand Post installed DSL on my street in 1998. From there, I started writing at The FreeBSD Diary, moving my work here after I discovered WordPress. Along the way, I started the BSDCan and PGCon conferences. I slowly moved from software development into full time systems administration and now work for very-well known company who has been a big force in the security industry.

Removing an icon from FreshPorts

Things change. They evolve. In previous versions of FreshPorts, to see the files for a particular commit, you went to /category/ports/files.php?message_id=Some.Message.ID. But no longer. Now you can see all the details at /commit.php?message_id=Some.Message.ID. That’s a shorter URL and eliminates some ugly URL parsing. commit.php now doubles up and shows you both the commit details and

Removing an icon from FreshPorts Read More »

Rearranging the URL with mod_rewrite

And today, for my first trick (yes, it is my first trick, but my second post today), I shall transform this URL: http://www.freshports.org/news/pan2/files.php?message_id=200605010349.k413nOGF019378@repoman.freebsd.org into http://www.freshports.org/commit.php?message_id=200605010349.k413nOGF019378@repoman.freebsd.org&category=news&port=pan2&files=yes Why? Because it is impolite to break existing URLs. It is far better to redirect them to the new improved content. Our documentation for today’s exercise shall be http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteRule. Our

Rearranging the URL with mod_rewrite Read More »

Scroll to Top