Skip to content

Commit f13f8cb

Browse files
committed
fix: remove trailing semicolon from .htaccess sample code (#309)
Likely a regression from replacing ">" with ">" which makes the apache config syntactically invalid. Removing the semicolons should make the config valid again.
1 parent 7a84373 commit f13f8cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inc/setup/cachify.hdd.htaccess.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
defined( 'ABSPATH' ) || exit;
1010

1111
$htaccess = '# BEGIN CACHIFY
12-
<IfModule mod_rewrite.c>;
12+
<IfModule mod_rewrite.c>
1313
RewriteEngine on
1414
1515
# set hostname directory
@@ -29,12 +29,12 @@
2929
$htaccess .= '
3030
# gzip
3131
RewriteRule .* - [E=CACHIFY_SUFFIX:]
32-
<IfModule mod_mime.c>;
32+
<IfModule mod_mime.c>
3333
RewriteCond %{HTTP:Accept-Encoding} gzip
3434
RewriteRule .* - [E=CACHIFY_SUFFIX:.gz]
3535
AddType text/html .gz
3636
AddEncoding gzip .gz
37-
</IfModule>;
37+
</IfModule>
3838
';
3939
}
4040

@@ -47,7 +47,7 @@
4747
RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_
4848
RewriteCond ' . WP_CONTENT_DIR . '/cache/cachify/%{ENV:CACHIFY_HOST}%{ENV:CACHIFY_DIR}index.html%{ENV:CACHIFY_SUFFIX} -f
4949
RewriteRule ^(.*) ' . wp_make_link_relative( content_url() ) . '/cache/cachify/%{ENV:CACHIFY_HOST}%{ENV:CACHIFY_DIR}index.html%{ENV:CACHIFY_SUFFIX} [L]
50-
</IfModule>;
50+
</IfModule>
5151
# END CACHIFY';
5252

5353
// phpcs:disable Squiz.PHP.EmbeddedPhp

0 commit comments

Comments
 (0)