Re: redirect http to https

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

 



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.

Paul.



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

  Powered by Linux