Posted By

dertimbo on 09/18/09


Tagged

redirect htaccess notification maintenance rewrite offline


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

mattrichardson
jmiller
kernelpanics
profpatsy
jackkeller


Website Maintenance Redirect


 / Published in: Apache
 

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

  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  

You need to login to post a comment.