You need something like this. It redirects non www to www.
PHP Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
You need to either redirect www to non www or the other way around. Make sure you have your domain set in Vbulletin to the one you wish to use. I always use the non www myself but up to you.