? boost-345484.1.patch
? boost-345484.2.patch
? 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	28 Oct 2009 00:07:30 -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,19 @@ function boost_init() {
     return;
   }
 
-  global $user, $base_path;
+  // Make sure this is not a 404 redirect from the htaccesss file
+  $path = explode($base_path, request_uri());
+  array_shift($path);
+  $path = implode($base_path, $path);
+  $path = explode('?', $path);
+  $path = array_shift($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
