Skip to content

Instantly share code, notes, and snippets.

@darkworks
Forked from CatEntangler/.htaccess
Created June 7, 2016 14:18
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 darkworks/78b5799c3bc0b8a7401c63268f9a07bf to your computer and use it in GitHub Desktop.
Save darkworks/78b5799c3bc0b8a7401c63268f9a07bf to your computer and use it in GitHub Desktop.
Snipped for a maintenance mode setup in .htaccess
ErrorDocument 503 /maintenance.html
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /maintenance.html [R=503,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment