From a9787a61c7a9fdda8cca8b6b9a067992ee46bce6 Mon Sep 17 00:00:00 2001 From: Daniel Jakots Date: Mon, 6 Nov 2017 14:39:40 -0500 Subject: [PATCH] =?UTF-8?q?redirect=20pour=20forcer=20le=20https,=20si=20q?= =?UTF-8?q?uelqu'un=20a=20une=20meilleure=20id=C3=A9e..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoApache.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HowtoApache.md b/HowtoApache.md index 3ccb69e0..1c930c36 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -494,6 +494,12 @@ RewriteRule ^/FoO.tXt /sub/ [L,R,NC] # empêcher des requêtes POST sur une URL particulière RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/foo.txt [L,F] + +# Pour forcer le https +RewriteCond %{HTTPS} !=on +RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R=permanent] + + ~~~ Pour supprimer un Query String avec une Rewrite Rule :