On Mon, Jun 22, 2009 at 12:03 PM, vinodp <[email protected]> wrote:

>
> thanks..
> got it :)
> ip based access to admins only, 503 for rest
>
> .htaccess
> RewriteEngine On
> RewriteCond %{REMOTE_ADDR} !^201\.203\.149\.149$
> RewriteRule !down.php$ down.php [L]
>
> down.php
> <?php
> header("HTTP/1.1 503 Service Unavailable");
> echo "Server is down for maintenance. We will be back in 60 minutes.";
> ?>
>


And the of use of a relative rather than absolute time gives you a little
extra flexibility -- nice touch!

(-:

-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness

Reply via email to