Redirect from non-www to www possible?

Hello team,

Does anyone know if there is an option that I can use to allow non-www to www redirection, with SSL enable while running “ee site create” command?

I’m asking this because when I tried to visit my website on non-www with some local Nginx changes for redirection, the certificate was not valid on non-www HTTPS.


Looks like is working from time to time, not sure why sometimes redirection.conf is created and sometimes not.