Created
March 16, 2023 10:36
-
-
Save thierrypigot/3fd035988160811f5b4d0dd80034489a to your computer and use it in GitHub Desktop.
Mettre WordPress en maintenance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/maintenance\.html$ | |
RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 | |
RewriteRule .* /maintenance.html [R=503,L] | |
ErrorDocument 503 /maintenance.html | |
Header Set Cache-Control "max-age=0, no-store" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment