Skip to content

Commit

Permalink
fix: remove trailing semicolon from .htaccess sample code (#309)
Browse files Browse the repository at this point in the history
Likely a regression from replacing ">" with ">" which makes the
apache config syntactically invalid. Removing the semicolons should make
the config valid again.
  • Loading branch information
stklcode committed Oct 6, 2024
1 parent 7a84373 commit f13f8cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/setup/cachify.hdd.htaccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
defined( 'ABSPATH' ) || exit;

$htaccess = '# BEGIN CACHIFY
<IfModule mod_rewrite.c>;
<IfModule mod_rewrite.c>
RewriteEngine on
# set hostname directory
Expand All @@ -29,12 +29,12 @@
$htaccess .= '
# gzip
RewriteRule .* - [E=CACHIFY_SUFFIX:]
<IfModule mod_mime.c>;
<IfModule mod_mime.c>
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteRule .* - [E=CACHIFY_SUFFIX:.gz]
AddType text/html .gz
AddEncoding gzip .gz
</IfModule>;
</IfModule>
';
}

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

// phpcs:disable Squiz.PHP.EmbeddedPhp
Expand Down

0 comments on commit f13f8cb

Please sign in to comment.