Site not work with www. , but yes with out this

Hello, I have a site that I cannot access with www.sitename.com ,
but it works correctly under https://sitename.com
How should I proceed to be able to enter with the three www ??
Feature: Ubuntu 20 and php 8.2

Here are two forum posts that may hopefully assist you:

  1. [Tutorial] How to make redirect with or without WWW and redirect to https

  2. URL redirect rewrite using the htaccess file