From 558436d340800b591d2e4e18cfd7f252c2a3d442 Mon Sep 17 00:00:00 2001 From: btatu Date: Fri, 14 Jun 2019 11:16:44 +0200 Subject: [PATCH] Ajout d'une Rewrite Rules --- HowtoApache.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/HowtoApache.md b/HowtoApache.md index f96417fa..6d85cfd9 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -724,6 +724,14 @@ ErrorDocument 503 "Maintenance temporaire, veuillez patienter. Merci." #ErrorDocument 503 http://maintenance.evolix.org/ #Header Set Cache-Control "no-cache, no-store" #Header Set Pragma "no-cache" + +# Afficher une page de maintenance si elle existe et le contenu du site s'affiche pour ceux ayant l'IP spécifié. +RewriteCond %{REMOTE_ADDR} !^123\.456\.X\.X +RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f +RewriteCond %{SCRIPT_FILENAME} !maintenance.html +RewriteRule ^.*$ /maintenance.html [R=503,L] +ErrorDocument 503 /maintenance.html +Header Set Cache-Control "max-age=0, no-store" ~~~ Pour supprimer un Query String avec une Rewrite Rule :