Re: redirect http to https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx

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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux