Ignore:
Timestamp:
Nov 20, 2013, 9:47:29 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Report correct HTTP response code for unknown pages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/system.php

    r590 r591  
    200200  function PageNotFound()
    201201  {
     202        // Send correct HTTP status code to signal unknown page
     203        if(array_key_exists('SERVER_PROTOCOL', $_SERVER))
     204          Header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
    202205        if(array_key_exists('HTTP_REFERER', $_SERVER)) $Referer = ' Referer: '.$_SERVER['HTTP_REFERER'];
    203206          else $Referer = '';
Note: See TracChangeset for help on using the changeset viewer.