Skip to content

Instantly share code, notes, and snippets.

@Zillionx
Created September 13, 2019 13:14
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 Zillionx/f7dfd0862935478db9f7a019f1ed26ca to your computer and use it in GitHub Desktop.
Save Zillionx/f7dfd0862935478db9f7a019f1ed26ca to your computer and use it in GitHub Desktop.
# redirect all users to maintenance page
RewriteCond %{REQUEST_URI} !^/maintenance.php$ [NC]
RewriteRule ^(.*)$ /maintenance.php [R=302,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment