Created
March 5, 2015 10:16
-
-
Save ajaegers/6447f8efa8391ea7502e to your computer and use it in GitHub Desktop.
Maintenance page with whitelist ip
This file contains hidden or 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
# banvhost begin | |
RewriteEngine On | |
RewriteCond %{REMOTE_ADDR} !^NUM\.NUM\.NUM\.NUM\. | |
#RewriteRule ^.* http://example.com/maintenance.html [P,L] | |
RewriteCond %{REQUEST_URI} !^/maintenance/ | |
RewriteRule ^.* /maintenance/ [R,L] | |
# banvhost end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment