Ensure domain non-www version points to www version

To redirect all users to access the site with the www. prefix ensure to uncomment the lines as shown below. The lines shown below reside within the .htaccess file on the UNIX server.

# To redirect all users to access the site WITH the 'www.' prefix,  
# (http://example.com/... will be redirected to http://www.example.com/...)  
# uncomment the following:  
RewriteCond %{HTTP_HOST} .  
RewriteCond %{HTTP_HOST} !^www\. [NC]  
RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]