httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <>
Subject Re: [users@httpd] Automatic Redirect to a Secure Page in Apache 2.2.2
Date Wed, 07 Mar 2007 14:07:39 GMT
On 07/03/07, Kaplan, Andrew H. <> wrote:
> Hi there --
>  I have set up SquirrelMail on our e-mail server and I would like to have
> users be automatically redirected to a secure or https page when they type
> in the URL to get to the initial login page. The apache server is version
> 2.2.2. What file(s) should I modify to make this happen?

The simplest way to do this is via:
RedirectPermanent /
in a non-ssl vhost. You can get more complicated by using
RedirectMatch ^/something$ https:// if you wish to redirect only
certain urls, and more complicated yet using mod_rewrite.
See here if you like complication:


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message