
A domain can often be reached with or without the www prefix. The important issue is consistent configuration, not a universal requirement to use one format.
Select the primary hostname and permanently redirect the alternate version to it. Internal links, canonical URLs, sitemaps, and marketing materials should consistently use the preferred hostname.
Changing the hostname of an established site requires careful redirects and monitoring.