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

Re: redirect http to https



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.



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