Rearranging the URL with mod_rewrite
Thursday, November 9th, 2006And 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 first attempt at fixing […]
