Https and www problem on my website

Hello

I installed wordpress on digitalocean droplet via easyengine code

wget -qO ee rt.cx/ee4 && sudo bash ee

sudo ee site create www.cameraforme.com --type=wp --cache --with-local-redis --ssl=le

Now the problem is website is opening only when prefix www before site name
and doesn’t open when not prefix www

how can I rectify this problem so that website open by both www and non www with ssl

Please guide me it is very urgent … work is pending

thanks

You don’t want the website to open with both www and non-www that will be duplicate content to Google. Is there a reason you want this?

Hello Rrohit_Kumar;

Firstly when yo create a site on ee; You must be without www.
For example: sudo ee site create cameraforme.com --type=wp --ssl=le

www is a cname… you can add CNAME “www” where it provide DNS