I've got a redirect from http://example.com to http://www.example.com. now i would like this redirect to operate once the user is within https protocol. meaning to redirect from https://example.com to https://www.example.com. is it feasible? otherwise, how do you redirect https://example.com/page to http://example.com or http://www.example.com

i really hope i had been obvious

Redirecting from https://example.com to https://www.example.com works in the same manner as redirecting from http://example.com to http://www.example.com, except you need to place the rewrite rules inside your SSL-enabled VirtualHost additionally for your plain HTTP VirtualHost section.

Where you might get an issue is the fact that, with this to operate, you'll need the first link with https://example.com to operate and become recognized through the browser. With this, you'll need your certificate to become valid for www.example.com and example.com. This really is typically made by using multiple Subject Alternative Names inside your server certificate (you need to have the ability to check this out by searching in the particulars of the certificate). Some CAs problem certificates both with and with no www. prefix.