Re: [Jeffncou] IW. Can I replace undefined index response with a 404 error?
Hi,
I took a look through the Instant Website code, and in webiste_inti.php there is this block:
// show error message if no matching page is found
if (!$page) {
header("HTTP/1.0 404 Not Found");
print "<h1>404 Not Found</h1>";
exit;
}
This should give a 404 error when a page has not be retrieved. Could you give an example link to a page where you get the "Unidentified Index" error?
Also, so can change the message in the code at this point, or put in a redirect if you like.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/