diff --git a/boost.admin.htaccess.inc b/boost.admin.htaccess.inc
index ac690eb047d579ecb73bc9c87f6e4e9a8de61570..0dd5422587c3d15e9f9bfe748d0bea6fa710acdd 100644
--- a/boost.admin.htaccess.inc
+++ b/boost.admin.htaccess.inc
@@ -219,7 +219,8 @@ function boost_admin_htaccess_generate_htaccess() {
     if (variable_get('boost_ssl_bypass', BOOST_SSL_BYPASS)) {
       $string .= "  RewriteCond %{HTTPS} on [OR]\n";
     }
-    $string .= "  RewriteCond %{HTTP_COOKIE} " . variable_get('boost_cookie', BOOST_COOKIE) . "\n";
+    $string .= "  RewriteCond %{HTTP_COOKIE} " . variable_get('boost_cookie', BOOST_COOKIE) . " [OR]\n";
+    $string .= "  RewriteCond %{ENV:REDIRECT_STATUS} 200\n";
     $string .= "  RewriteRule .* - [S=$skip]\n";
     $string .= "\n";
     $string .= "  # GZIP\n";
@@ -262,4 +263,5 @@ function boost_admin_htaccess_array_find($needle, $haystack, $a_not = array()) {
     }
   }
   return $out;
-}
\ No newline at end of file
+}
+