On Wed, Jun 14, 2000 at 05:45:46PM +0200, michel wrote:
> Hi, I have a site with SSL. I want that if a user came in
> http://www/mydomain.com/michel via automatic the user is redirect to
> https://www/mydomain.com/michel
> 
> I have see manual, but I'm a newbie in regular expression. 
> In httpd.conf I have:
> <Directory /usr/local/apache-1.3.12/htdocs/michel>
>         Order allow,deny
>             Allow from all
>         RewriteEngine        on
>         RewriteCond  %{HTTPS} !=on
>         RewriteRule  (.*) https://%{SERVER_NAME}/ [R,L]
>         #RewriteRule   * https://%{SERVER_NAME}/$1
>         </Directory>
> 
> out of every <IfModule> 
> 
You could just do this on your http host:

RewriteEngine        on
RewriteRule ^/michel(.*)         https://%{SERVER_NAME}/michel$1 [L,R]


vh

Mads Toftum
-- 
`Darn it, who spiked my coffee with water?!' - lwall

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

Reply via email to