Skip to content

Instantly share code, notes, and snippets.

@rcaetano
Created June 19, 2009 06:12
Show Gist options
  • Save rcaetano/132449 to your computer and use it in GitHub Desktop.
Save rcaetano/132449 to your computer and use it in GitHub Desktop.
# This rewrites all dynamic requests to /system/maintenance.html if that
# file exists, this file is created by Capistrano's disable task.
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