Redirect to

If you want to force clients to use, you can redirect them from to the www version with an .htaccess file.

In your public_html folder, create a file called .htaccess and add the code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$$1 [R=permanent]

where you’d need to replace domain\.com and with your actual domain name.  Note the \ character must be present to escapce the . character.

Other versions of the same thing do a negation check to see if the domain is not, but that doesn’t work if you have subdomains.. hence the need for the explicit check for the value we don’t want.