Last active
January 16, 2019 16:01
-
-
Save nosmall/1358c04d34c1a6bd0c97c3a550041984 to your computer and use it in GitHub Desktop.
.htaccess temporary redirect maintenance script
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
# Work | |
RewriteCond %{REMOTE_ADDR} !^111.222.333.444 | |
# Home | |
RewriteCond %{REMOTE_ADDR} !^111.222.333.444 | |
# | |
RewriteCond %{REQUEST_URI} !^/coming-soon/(.)*$ [NC] | |
RewriteRule ^(.*)$ https://domain.tld/coming-soon/ [R=302,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment