Forum Replies Created

Viewing 1 replies (of 1 total)
  • We don’t control our web server and it will always parse headers from php scripts.
    The simple solution was to edit one of the php files and remove the line that sent the header

    in wp-includes/functions.php around line 2200 in my version
    Note the line that has a ‘#’ in front 2 lines up from the closing }
    function status_header( $header ) {
    if ( 200 == $header )
    $text = ‘OK’;
    elseif ( 301 == $header )
    $text = ‘Moved Permanently’;
    elseif ( 302 == $header )
    $text = ‘Moved Temporarily’;
    elseif ( 304 == $header )
    $text = ‘Not Modified’;
    elseif ( 404 == $header )
    $text = ‘Not Found’;
    elseif ( 410 == $header )
    $text = ‘Gone’;

    # @header(“HTTP/1.1 $header $text”);
    @header(“Status: $header $text”);
    }

Viewing 1 replies (of 1 total)