Skip to content

Instantly share code, notes, and snippets.

@ReekenX ReekenX/.htaccess
Created Mar 19, 2014

Embed
What would you like to do?
Redirect to maintenance except custom IP's
RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123
RewriteRule $ /maintenance.html [R=302,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.