Hello jason,

Monday, August 16, 1999, you wrote:

j> I could type https://my.web.page/secure/index.html
j> but how do I make it so that when a user hits
j> http://my.web.page/secure/index.html his browser will automagically go
j> into https mode?

Make sure the virtual hosts for ports 80 and 443 are in different
directories. In the /secure subdirectory on the non-SSL virtual host,
in your .htaccess file, use
  RewriteEngine On
  RewriteRule (.*) https://my.web.page/secure/$1 [R]

Requires mod_rewrite, of course.

 - Iain                           mailto:[EMAIL PROTECTED]


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

Reply via email to