Forum Moderators: phranque
if (
!$expiration ||
$expiration < $today
) { header("Location:$home/?q=notfound"); exit; }
if ($_GET['q'] == 'notfound') echo "Error message";
if (
!$expiration ||
$expiration < $today
) {
header(“HTTP/1.1 301 Moved Permanently”);
header("Location:$home/?q=notfound");
exit;
}
header(“HTTP/1.1 301 Moved Permanently”);
header("Location:$home/?q=notfound");
exit;
header("HTTP/1.0 404 Not Found");
require("your 404 page");
exit;