Is one of the below better than the other?
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
[edited by: incrediBILL at 1:58 am (utc) on May 16, 2012]
[edit reason] fixed URLS, use Example.com [/edit]