Created
February 22, 2018 11:07
-
-
Save ideadude/82ba2e5b2d6d6932f3666792069b577e to your computer and use it in GitHub Desktop.
Redirect all traffic to maintenance.html except /wp-admin/
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
#redirect everything | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^maintenance.html maintenance.html [L] #setup nothing.html with your noth$ | |
RewriteCond %{REQUEST_URI} !^/?(wp-admin)/ | |
RewriteRule ^$ maintenance.html [L] | |
RewriteCond %{REQUEST_URI} !^/?(wp-admin)/ | |
RewriteRule . / [R,L] | |
#end redirect everything |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment