Try using RewriteRule http://address/directory/(.*)
https://address/directory/\1 .

(If that doesn't work, look for the documentation in mod_rewrite.)

---
Mat Butler, Winged Wolf                       <[EMAIL PROTECTED]>
SPASTIC Web Engineer                  SPASTIC Server Administrator
----Begin FurryCode v1.3----
FCWw5amrsw A- C+ D H+++ M+++++[servercoder] P+ R++ T+++ W Z++ Sm++ 
RLCT/M*/LW* a cl/u/v++++>+++++ !d e- f>++++ h++ iwf+++ j p->+ sm++
----End FurryCode v1.3----


On Fri, 10 Mar 2000, John Castillo wrote:

> hello all,
> 
> i have setup mod_ssl... works.
> 
> now i'm trying to tweak my httpd.conf so that if a user connects to a secure area 
>(https://host/secure_area) via an insecure protocol (http://host/secure_area) that 
>they are redirected to the secured protocol (http+ssl over port 443).  
> 
> temporarily, i'm use the SSLRequireSSL but that just Forbids access for people 
>viewing the secure area over http.  is it possible to either redirect the client to 
>https or apply some SSL directive that will enable SSL on the fly?
> 
> <Directory /home/httpd/html/secure_area>
>    Options Indexes FollowSymLinks
>    AllowOverride None
>    order allow,deny
>    allow from all
>    SSLRequireSSL
> </Directory>
> 
> john c.
> 

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to