Ajout d'une Rewrite Rules
This commit is contained in:
parent
133f6a7919
commit
558436d340
|
@ -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 :
|
||||
|
|
Loading…
Reference in New Issue