Website Maintenance Redirect


/ Published in: Apache
Save to your folder(s)

Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.


Copy this code and paste it in your HTML
  1. RewriteEngine On
  2. RewriteCond %{REMOTE_ADDR} !^321.123.321.123$
  3. RewriteRule ^(.*)$ \http://www.example.com/maintenance.html [R=302,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.