public

Capistrano suggestion for .htaccess maintenance check

  • Download Gist
capistrano_suggest_htaccess_maintenance
1 2 3 4 5 6
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 ^.*$ - [redirect=503,last]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.