I want to redirect my naked domain to https with www
like => https://www.example.com
I am using Ubuntu 16.04, apache, Let's Encrypt.
Rewrite rules will help you with this. It's very powerful utility, you do almost all URL manipulations with it.
We will added needed rules to Apache config. If you use default configuration, it's stored in file called...