View Single Post
Old 09-15-2004, 02:20 PM  
nibbi
Confirmed User
 
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
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
nibbi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote