22
0
Fork 0

correction de la suggestion car ErrorDocument 503 http... force une 302, pas top

This commit is contained in:
Gregory Colpart 2018-09-10 22:55:43 +02:00
parent 27fdf0555f
commit 1112427563
1 changed files with 5 additions and 4 deletions

View File

@ -639,10 +639,11 @@ RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R=permanent]
# mettre un site en maintenance (code 503) avec des exceptions
RewriteCond %{REMOTE_ADDR} !^192\.0\.2\.129
RewriteRule ^.*$ /maintenance.html [R=503,L]
ErrorDocument 503 http://maintenance.evolix.org/
Header Set Cache-Control "no-cache, no-store"
Header Set Pragma "no-cache"
RewriteRule ^.*$ / [R=503,L]
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"
~~~
Pour supprimer un Query String avec une Rewrite Rule : <https://www.philipphoffmann.de/blog/2012/08/16/how-to-discard-the-query-string-in-a-rewriterule-apache-mod_rewrite/>