Skip to content

Instantly share code, notes, and snippets.

@mark-d-holmberg
Created December 30, 2013 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark-d-holmberg/8183822 to your computer and use it in GitHub Desktop.
Save mark-d-holmberg/8183822 to your computer and use it in GitHub Desktop.
This is an apache file for turning on Maintenance Mode
RewriteEngine On
RewriteLog /var/log/apache2/jrop-rewrite.log
RewriteLogLevel 0
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteCond %{HTTP_COOKIE} !MAGIC_STRING
RewriteRule ^.*$ /system/maintenance.html [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment