Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created January 5, 2010 16:22
Show Gist options
  • Save edavis10/269491 to your computer and use it in GitHub Desktop.
Save edavis10/269491 to your computer and use it in GitHub Desktop.
## Put inside the Rails apache virtual host
#
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment