Steve Sobol wrote:
>
> Balazs Nagy wrote:
>
> > > I don't think (AFAIK) there's a way for a web server to do this.
> >
> > 2) The auto redirect IS possible:
> > There are two virtual host definitions, one for the port 80 (unsecure) and one
> > for the port 443 (secure). In the virtual host :80 you could use something
> > like:
> > Redirect /michel https://www.domain.com/michel
> > In the virtual host :443 you might want to put a few redirect rules to switch
> > back to the :80 virtual host. There is a detailed example earlier on this list
> > (april-may).
>
> Actually, you could just do a global redirect:
>
> Redirect / https://www.domain.com/
>
> which redirects any url under / (the web site's root) to the
> secure URL.
That was not the question ;) He wanted only part of the site (the subdir
/michel).
> > RedirectMatch ^/(signup.pl.*) https://www.domain.com/$1
>
> I don't know that you even need to do that.
>
> Redirect will preserve CGI parameters entered as part of the URL.
Yes, but in his case, he might have things like
.../michel/page1.html
or
.../michel/page2.html
In that case you do need to use
RedirectMatch ^/(michel.*) https://www.domain.com/$1
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]