I have tried using a 301 redirect using the following code in the htaccess file :
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[login to view URL] [NC]
RewriteRule ^(.*)$ [login to view URL]$1 [L,R=301]
The redirect worked in that the non www was redirected to the www.
However, I was not able to create a customer user account or log in to the site as a customer.