redirect http to https
Paul Howarth
paul at city-fan.org
Thu Oct 28 11:13:50 UTC 2004
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.
More information about the fedora-list
mailing list