Non basta un header 404 per redirigere il browser.
Potresti fare così:
P.S. nell'header location usa un URL completo (http://www....)codice:if ($variabile) { header("HTTP/1.0 404 Not Found"); header("Location: /page-not-found.php"); }
Non basta un header 404 per redirigere il browser.
Potresti fare così:
P.S. nell'header location usa un URL completo (http://www....)codice:if ($variabile) { header("HTTP/1.0 404 Not Found"); header("Location: /page-not-found.php"); }
Addio Aldo, amico mio... [03/12/70 - 16/08/03]