Volgens http://nl2.php.net/manual/en/function.header.php zou dat kunnen met
$toLocation="http://".$_SERVER['HTTP_HOST']."/404.php";
header ('HTTP/1.1 301 Moved Permanently');
header ('Location: '.$toLocation);
Ik kreeg laatst van iemand het advies om het in één regel te doen:
header("Location: ".$toLocation,true,301);
Kan iemand bevestigen dat dat een correcte redirect is?
--
Nico Schuyt
http://www.nicoschuyt.nl/

Likes:

Quote