リダイレクトを実行するための次のコードがあります。my$includeFile
が存在しない場合、404 ページにリダイレクトされます。これは私のスニペットですindex.php
if ( !file_exists($includeFile) )
Header( "HTTP/1.1 404 Page Not Found" );
Header( "Location: http://legascy.com/404_error/");
しかしhttp://legascy.com/404_error/
、404 ではなく HTTP ステータス 200 OK を示しています。
これを解決するには?