Last active
June 27, 2020 09:28
-
-
Save jwv/4595235 to your computer and use it in GitHub Desktop.
Apache: Maintenance mode
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
############################################ | |
## 503 Maintenance mode | |
RewriteCond %{REQUEST_URI} !^/maintenance/ | |
RewriteCond %{REMOTE_HOST} !^YOUR\.IP\.ADDRESS\.HERE$ | |
RewriteCond %{REMOTE_HOST} !^127\.0\.0\.1$ | |
RewriteRule .* index.php [R=503,L] | |
ErrorDocument 503 /maintenance/maintenance.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment