How to Redirect Non-www domain to www on SSL [Urgent]

I just moved on to easy engine for my production sites; everything was working fine until I decided to use www. I have to use it.

OS: Debian 8 Wordpress

Need an updated and working solution regarding this. Old articles and solutions doesn’t work at all.

See here: Redirect non-www to www on ssl