Forum Moderators: open
RewriteRule products\/(.+)\.html$ /folder/products.php?productid=$1 [NC,L]
which works fine in all browsers, but I can't get them to go to the error page when someone tries to access a product that no longer exists. I've placed "ErrorDocument 404 /404.html" in .htaccess and even scripted the products.php file with:
$errorDocument404 = '/404.html';
if (!mysql_num_rows($res)) {
header("HTTP/1.0 404 Not Found");
include $errorDocument404;
exit;
}
but no matter what, even though both methods work fine in IE none of the three browsers Firefox, Opera & Safari will go to the error page. They all display blank pages except for Safari which outputs:
The page you opened redirected you to a page that isn’t supported by Safari. Safari can’t open the page “” because it cannot redirect to locations starting with “(null):”
I don't get what it means. Has anyone else come across this?