Yes it is a good idea to redirect the non-www to the www as long as the www has more links, otherwise I would suggest the opposite (www to the non-www). You just have to make a file named ".htaccess" and placing this in the document:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com/ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Then just upload it to the server.