Created
August 7, 2016 04:32
-
-
Save muhfaris/439399e2418f6b6705510cff4794ce30 to your computer and use it in GitHub Desktop.
Maintenance with htaccess
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !/repair.html$ [NC] | |
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] | |
RewriteRule .* /repair.html [R=302,L] | |
</IfModule> | |
#repair.html adalah halaman untuk menampilkan pemberitahuan bahwa situs maintenance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment