you don't need to do a mod_rewrite thing, btw, just do:
<VirtualHost *:80>
ServerName whatever.com
Redirect permanent / http://www.whatever.com/
</VirtualHost>