.htaccess redirect all pages to https://www

Hi guys,
I'm not to good with htaccess so I need your help.

I am able to find information on the 2 items I am looking for separately but not together.

I need all pages on a site to redirect to the www ssl version of the page.

so..
http://site.com/anypage.php > https://www.site.com/anypage.php
http://www.site.com > https://www.site.com
http://site.com/test/test.php > https://www.site.com/test/test.php


Thanks so much for your help!

 

 

 

 

Top