From 64e772f076e4a22c87d9c61383a61d2f3701aa76 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 14 Feb 2005 21:05:15 +0000 Subject: [PATCH] Send headers in a CGI friendly way git-svn-id: http://svn.automattic.com/wordpress/trunk@2336 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-blog-header.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 54993ca609..ec5b002a20 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -109,7 +109,10 @@ for ($i=0; $iis_404 = true; - header('HTTP/1.x 404 Not Found'); + if ( preg_match('/cgi/', php_sapi_name()) ) + @header('Status: 404 Not Found'); + else + @header('HTTP/1.x 404 Not Found'); } if ($pagenow != 'post.php' && $pagenow != 'edit.php') {