Commit c8c76e46 authored by mikeytown2's avatar mikeytown2

Issue #1113846 by mikeytown2, David4514: apache 1.3 fixes to htaccess.

parent 182cb959
......@@ -1262,7 +1262,7 @@ function boost_htaccess_cache_dir_generate() {
if ($values['enabled']) {
$forcetype = '\.' . $values['extension'];
if ($values['gzip']) {
$forcetype .= '(?:\.gz)?$';
$forcetype .= '(\.gz)?$';
$gzip = TRUE;
}
else {
......@@ -1300,7 +1300,7 @@ function boost_htaccess_cache_dir_generate() {
// Set html expiration time to the past and put in boost header if desired.
$files = implode('|' , $files);
if ($gzip) {
$files .= '(?:\.gz)?';
$files .= '(\.gz)?';
}
$string .= "<FilesMatch \"\.($files)$\">\n";
$string .= " <IfModule mod_expires.c>\n";
......
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