Date: 11/24/99
- Next message: Roger Eisenecher: "Re: [PHPLIB] OOHforms newbie question"
- Previous message: Howard Schultens: "[PHPLIB] OOHforms newbie question"
- In reply to: Bob Bowker: "[PHPLIB] Sneaky Use of prepend.php3"
- Next in thread: jim kraai: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
You may want to play with mod rewrite. The following lines in an virtual host directive
were successful in redirecting all requests to any page on the host to a single page
(closed.html in this case ). It may also work in a .htaccess file as-is or with modification:
RewriteEngine on
RewriteRule / /closed.html [L]
Check out:
http://www.engelschall.com/pw/apache/rewriteguide/
-Shawn
Bob Bowker wrote:
> Hi --
>
> We use a cronjob for automatic database maintenance every Tuesday at
> 1:00am, and we'd like to "shut down" the site while the MySQL engine does
> its stuff. Our problem is that many people arrive with bookmarks to pages
> deeper within the site, therefore bypassing any simple index.html "cut-out".
>
> Is there any reason we can't replace prepend.php3 with a script (by the
> same name) which shows a "down for maintenance" page to ALL visitors, then
> renames the proper prepend.php3 code when it's done?
>
> We've played with this a bit, but the cronjob that runs nicely without the
> rename/work/rename hangs up quite badly with it ...
>
> Once the proper prepend.php3 has been added to the cronjob script, can the
> actual prepend.php3 file be replaced temporarily? ... or are there
> problems with this scenario?
>
> Any better ideas on how to "shut down" the site ...?
>
> Thanks --
>
> Bob Bowker
> bowker <email protected>
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Roger Eisenecher: "Re: [PHPLIB] OOHforms newbie question"
- Previous message: Howard Schultens: "[PHPLIB] OOHforms newbie question"
- In reply to: Bob Bowker: "[PHPLIB] Sneaky Use of prepend.php3"
- Next in thread: jim kraai: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

