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 :