I am trying to write an .htaccess rule that appends www. to the domain and s to http if required but I can't seem to find a rule or set of rules that works for each case.
The cases are...
\https://www.site.com - should just work
\http://www.site.com - should go to \https://www.site.com
\http://site.com - should go to \https://www.site.com
\https://site.com - - should go to \https://www.site.com
Any help would greatly appreciated.