Apache HTTPS / non WWW redirection

I want to redirect all my web traffic to

So far I have everything except https: www.example.com redirects the fine

This is what my virtual host configuration file looks like

  DocumentRoot "/ opt / bitnami / apache2 / htdocs"
RewriteEngine On
RewriteCond% {HTTPS}! = On
RewriteRule ^ / (. *) Https://example.com/ [R,L]
  RewriteCond% {HTTPS_HOST} ^ https: //www.example.com [NC]
  RewriteRule ^ / (. *) Https://example.com/ [R,L]

The only site that does not redirect is


What do I miss?