Created
June 4, 2012 21:07
-
-
Save noel/2870859 to your computer and use it in GitHub Desktop.
mod_rewrite
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
ErrorDocument 503 /system/maintenance.html | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !.(css|gif|jpg|png)$ | |
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f | |
RewriteCond %{SCRIPT_FILENAME} !maintenance.html | |
RewriteRule ^/([^/]+)(/|/.*)?$ /$1/system/maintenance.html [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment