httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joost de Heer" <sang...@xs4all.nl>
Subject Re: [users@httpd] Problem redirecting http to https
Date Thu, 16 Jun 2005 21:01:50 GMT
Jignesh Badani said:
> We have a similar problem.
>
> We have always been doing it the Virtual host way (virtual on port 80
> redirects (permanant) to virtual on 443). In my Virtual host for port 80,
> I have:
>
> Redirect permanent      /       https://www.mysite.com/home/index.htm

This should be RedirectPermanent / https://www.mysite.com/

What RedirectPermanent (or Redirect permanent) basically does is replacing
the first argument with the second, even if something comes behind it. So
in your rule, /foo/bar is changed to
https://www.mysite.com/home/index.htmfoo/bar (replacing the leading / with
the replace-pattern).

Joost


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message