Is there a (easy) way to detect errors on a page, ex: /index.php and then, instead of “trying” to wiew index.php redirect to /last_stabile_index.html???
@NogDogDec 20.2006 — #Not sure if this is what you mean, but you could do the following: [code=php] <?php ob_start(); // so that header redirect will be sure to work function my_error($errCode, $errString) { header("Location: http://www.yoursite.com/last_stable_index.html?errno=$errCode"); } set_error_handler("my_error"); // rest of page..... [/code] See the [url=http://www.php.net/set_error_handler]set_error_handler page[/url] for more info, including the types of errors which will not be handled.