.htaccess rules not working
-
# BEGIN Serve Static Cache
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_COOKIE} !(^|;\s*)wordpress_logged_in_.*$ [NC]
RewriteCond %{REQUEST_URI} !^/(elementor|vc_row|fl_builder|fl-theme-builder) [NC]
RewriteCond %{REQUEST_URI} !^/wp-admin/ [NC]
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{QUERY_STRING} ^$ [NC]
RewriteCond /home/user/public_html/custom/serve-static-cache/$1/index.html -f
RewriteRule ^(.*)$ /custom/serve-static-cache/$1/index.html [L]
# END Serve Static CacheI’ve been using the standard HTACCESS settings and was under the impression everything was working properly. Today I enabled the fallback method (php) and now it’s really working! I went as far as making a manual edit to one of the cached index.html files to verify both modes and the .htaccess rules are not working at all.
I tried moving the rules to the top and the bottom of the .htaccess to see if they were being overridden, no change. Only the PHP version is working.
I also tried wrapping the rules in <IfModule mod_rewrite.c>…</IfModule> without success.
Any help would be great. Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.