2009-12-25, 02:02:46
(This post was last modified: 2009-12-25, 02:03:20 by professordenis.)
In index.php
find
replace with
basically - lines - 36 through 46 of index.php
what this will do is look for the existence of a page with a slug of 404 and it will serve that page when needed - if that page doesn't exist it defaults to the standard error page
HTH
saul
http://www.twitter.com/sauldraws
find
Code:
$file = "data/pages/". $id .".xml";
$file_403 = "data/other/403.xml";
if (! file_exists($file)) {
if (file_exists($file_403)) {
$file = $file_403;
include('admin/inc/403-mailer.php');
}
}
replace with
Code:
$file = "data/pages/". $id .".xml";
$preferred_file = "data/pages/404.xml";
$file_403 = "data/other/403.xml";
if (! file_exists($file)) {
if (file_exists($preferred_file)) {
$file = $preferred_file;
}else{
$file = $file_403;
}
include('admin/inc/403-mailer.php');
}
what this will do is look for the existence of a page with a slug of 404 and it will serve that page when needed - if that page doesn't exist it defaults to the standard error page
HTH
saul
http://www.twitter.com/sauldraws