cvs diff -u index.php (in directory C:\CVS\drupal) Index: index.php =================================================================== RCS file: /cvs/drupal/drupal/index.php,v retrieving revision 1.82 diff -u -r1.82 index.php --- index.php 21 Aug 2004 06:42:34 -0000 1.82 +++ index.php 28 Nov 2004 15:07:15 -0000 @@ -15,16 +15,23 @@ fix_gpc_magic(); -$status = menu_execute_active_handler(); -switch ($status) { - case MENU_NOT_FOUND: - drupal_not_found(); - break; - case MENU_ACCESS_DENIED: - drupal_access_denied(); - break; +// Handle 404s sent by the server (important when clean URLs are not enabled) +if (isset($_SERVER['REDIRECT_STATUS']) && $_SERVER['REDIRECT_STATUS'] == 404) { + $_GET['q'] = request_uri(); + drupal_not_found(); +} +else { + $status = menu_execute_active_handler(); + switch ($status) { + case MENU_NOT_FOUND: + drupal_not_found(); + break; + case MENU_ACCESS_DENIED: + drupal_access_denied(); + break; + } } drupal_page_footer(); -?> +?> \ No newline at end of file