Created
May 22, 2018 16:18
-
-
Save chergaoui/da151889167c0f1b098212e15a9f463f to your computer and use it in GitHub Desktop.
Maintenance Htaccess file
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 | |
RewriteBase / | |
RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.111 | |
RewriteCond %{REQUEST_URI} !^/maintenance\.html$ | |
RewriteRule ^(.*)$ http://domain.com/maintenance.html [R=307,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment