The closest I have been able to come is this..
RewriteEngine on
RewriteCond %[SERVER_PORT} !^443$
RewriteRule ^(.*)?$
https://% [SERVER_NAME}/$1 [L,R]
*note, I added [ before the word SERVER because the site would have stripped out the open curly bracket
This works to a point. If the file is within a sub directory, it will redirect to the root of the site/filename.
http://www.mysite.com/test/foo.html
gets redirected to:
http://www.mysite.com/foo.html
I want to send the surfer to the same path and file name that they called... just with https.
Sigh