Edit: Also, just noticed that RewriteCond %{SERVER_PORT} 80 does not work unless you explicitly add :80 to the URL.
Reply on news.ycombinator.com