From http://stackoverflow.com/questions/1100343/apache-redirect-from-non-www-to-www