? boost-345484.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.203
diff -u -p -r1.3.2.2.2.5.2.203 boost.module
--- boost.module	23 Oct 2009 02:56:20 -0000	1.3.2.2.2.5.2.203
+++ boost.module	27 Oct 2009 22:47:29 -0000
@@ -157,7 +157,7 @@ function boost_views_pre_render(&$view) 
  * Implementation of hook_init(). Performs page setup tasks if page not cached.
  */
 function boost_init() {
-
+  global $user, $base_path;
   // Disable all caches when nocache is set
   if (isset($_GET['nocache'])) {
     $GLOBALS['conf']['cache'] = CACHE_DISABLED;
@@ -165,7 +165,17 @@ function boost_init() {
     return;
   }
 
-  global $user, $base_path;
+  // Make sure this is not a 404 redirect from the htaccesss file
+  $path = explode($base_path, $_SERVER['REQUEST_URI']);
+  array_shift($path);
+  $path = implode($base_path, $path);
+  if ($path != '' && $_REQUEST['q'] == '') {
+    $GLOBALS['conf']['cache'] = CACHE_DISABLED;
+    $GLOBALS['_boost_cache_this'] = FALSE;
+    drupal_not_found();
+    return;
+  }
+
   //set variables
   $GLOBALS['_boost_path'] = $_REQUEST['q'];
   // Make the proper filename for our query
