url rewrite
Posted: Thu Nov 23, 2006 4:25 am
i need to put a server under maintanence page whenever the server is updated...
i am running apache
when user accesses any url in myapp/ it should go to undermaintanence.php
http://myhost/myapp/
to
http://myhost/undermaintanence.php
i tried this but does not work
is it also possible to write in .htaccess instead of httpd.conf so that the server can be brought under maintanence without restarting apache.
thanks.
i am running apache
when user accesses any url in myapp/ it should go to undermaintanence.php
http://myhost/myapp/
to
http://myhost/undermaintanence.php
i tried this but does not work
Code: Select all
RewriteEngine on
RewriteRule myapp/.* undermaintanence.phpthanks.