1 | Guru
ID: 330592710 Wed, Jan 04, 2006, 18:30
|
How about inserting a javascript link (to a .js file) which "appears" at the top of each page at your site. For most of the time, the script would do nothing. But when you wanted to take the site down, you could put a redirect in the script code. That way, no matter what page is accessed, it will roll over to the "server down" page.
You could embed some form of switch (perhaps via a cookie reference) that would allow developers to continue to access the underlying pages while others are being redirected.
For example, every page at this forum references a script that normally prints either the GuruPatron message or an ad. If I wanted to, I could change the script (which is contained in a separate file) to redirect to any other URL, which would effectively take the forum offline.
|