At a new wordpress website, I have noticed that when putting the domain.com at a browser, we get these 2 redirects:
[.........com...]
The second redirect is because of the Polylang plugin.

If we try the domain as www.domain.com then we get a 302 redirect to the https www domain.com en home version.

How can we fix these 2 issues?
From the first type, to remove one of the 2 redirects.
From the second type, to replace the 302 with a 301 redirect.