Skip to content

Instantly share code, notes, and snippets.

@takaaki
Created April 22, 2009 10:38
Show Gist options
  • Save takaaki/99709 to your computer and use it in GitHub Desktop.
Save takaaki/99709 to your computer and use it in GitHub Desktop.
# Add this for Rails projects to make the "maintenance" mode work.
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