Skip to content

Instantly share code, notes, and snippets.

@ajaegers
Created March 5, 2015 10:16
Show Gist options
  • Save ajaegers/6447f8efa8391ea7502e to your computer and use it in GitHub Desktop.
Save ajaegers/6447f8efa8391ea7502e to your computer and use it in GitHub Desktop.
Maintenance page with whitelist ip
# 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