Skip to content

Instantly share code, notes, and snippets.

@fedek6
Created April 5, 2022 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedek6/cdfb38c434b4401138a38721c869e393 to your computer and use it in GitHub Desktop.
Save fedek6/cdfb38c434b4401138a38721c869e393 to your computer and use it in GitHub Desktop.
Rewrite everything to maintenance page when IP does not equal
RewriteCond %{REMOTE_ADDR} !=95.160.157.10
RewriteCond %{REQUEST_URI} !=/maintenance.html
RewriteRule ^(.*)$ /maintenance.html [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment