The fact that the website appears with www. or without www can sometimes cause content to be considered as duplicate content by Google or other search engines, as if they were two different websites.
To avoid possible incidents and penalties by Google, it is very important to determine the domain with www. as a primary domain, so that the home page, for example, is always http://www.web.com. You can provide this information from the domain management panel or simply from Google Webmaster Tools, which allows this option, as it directly tells to Google which is the preferred domain.
To do this, we record the two domains on the platform and choose the preferred domain:
Then we go to the Site Settings option: