if (strstr($_SERVER['REQUEST_URI'],'index.php')) {
header('HTTP/1.0 404 Not Found');
}
Why wont this work? I get a blank page.
if (strstr($_SERVER['REQUEST_URI'],'index.php')) {
header('HTTP/1.0 404 Not Found');
}
Why wont this work? I get a blank page.
If you want to show the server’s default 404 page, you can load it in a frame like this:
Try this:
For the record, this is the all-case handler:
You know, in my website i created something like this:
i hope it helps you.
Load default server 404 page, if you have one, e.g. defined for apache:
A little bit shorter version. Suppress odd echo.