httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lilla <>
Subject Re: [users@httpd] Redirect to SSL on same IP but multiple domains
Date Thu, 28 Nov 2002 16:04:29 GMT

I have also tried this (thanks to Rene Huber for the hint):

     RewriteEngine on
     RewriteRule ^http:// https://

but it does not work either... I just get the index of the files located 
under the root of http:// . And I know rewrite works since I can use 
other kind of rewrites.

Thanks for any help!


Lilla wrote:

> Hi,
> Right now I've got Apache 1.3.27 configured with namebased virtualhosts
> to handle multiple domains. In each domain's http htdocs-folder I've a
> .htaccess that looks like this:
>      Redirect permanent /
> where "exampleno" is different for each domain.
> Question: Is there a way to write in the .htaccess or in httpd.conf so
> that it just jumps imediately from http to https and keeping the same
> hostname (I am running multiple domains on the same IP so I can't use
> the hostname as I do above). Maybe I've missed it in the docs, but there
> may be a way to avoid using virtual domains for just performing a
> redirect to the same address but with https instead of http? For example
> something like this would be nice (but it doesn't work):
>      Redirect permanent / https://
> Thanks for your help guys!!


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