Apache : redirection HTTPS
Boris HUISGEN December 20, 2008
La redirection transparente en HTTPS est probablement la redirection la plus importante à mettre en place au niveau d’un site web.
Sous Apache, ajoutez ces lignes au niveau du virtual host à configurer :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>