redirect http to https

Götz Reinicke goetz.reinicke at filmakademie.de
Thu Oct 28 11:22:09 UTC 2004


Hi,

Paul Howarth wrote:

> Götz Reinicke wrote:
> 
>> Hi,
>>
>> is there a simple way, to redirect all http requests to a special 
>> webserver to https? At the moment users have to type https://..., but 
>> I'd like to "disable" normal http:// requests and users, who still try 
>> http should be redirected to the smae page by https...
> 
> 
> Try:
> 
>     RewriteEngine    on
>     RewriteRule        ^/(.*)$        https://%{SERVER_NAME}/$1    [R]
> 
> in the VirtualHost section of httpd.conf for the server you wish to do 
> this on.

Some things are simple!

Thanks!

regards

Götz
-- 
Götz Reinicke
IT Koordinator - IT OfficeNet

Tel. +49 (0) 7141 - 969 420
Fax  +49 (0) 7141 - 969 55 420
goetz.reinicke at filmakademie.de

Filmakademie Baden-Württemberg
Mathildenstr. 20
71638 Ludwigsburg
www.filmakademie.de




More information about the fedora-list mailing list