Commit 53d145d0 authored by bgm's avatar bgm

refs #1267972 : avoid a loop when index.php is accessed directly a creates a wildcard cache file

parent 8f9586f9
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment