Problem with Woocommerce
-
Hi, I have already commented on your site but was not sure if it would be better here.
I am having a problem when I am using the advanced code you are providing for the .htaccess.I am using Woocommerce and if I don’t use the code, it works, but if I add it to my .htaccess, I cannot add anything to my cart – instead of the cart the product page is displayed, even if I disable caching for cart and checkout page.
I have a piece of code that you provided about a year ago and it is a bit different, and this code still works w/o problems, so I was wondering if I cn still use the old code. It is this one:
# BEGIN Cache Enabler <ifmodule mod_rewrite.c=""> RewriteEngine On <ifmodule mod_mime.c=""> # gzip HTML file RewriteCond %{REQUEST_URI} /$ RewriteCond %{REQUEST_URI} !^/wp-admin/.* RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} ="" RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_ RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/cache-enabler/%{HTTP_HOST}%{REQUEST_URI}index.html.gz -f RewriteRule ^(.*) /wp-content/cache/cache-enabler/%{HTTP_HOST}%{REQUEST_URI}index.html.gz [L] AddType text/html .gz AddEncoding gzip .gz </ifmodule> # default HTML file RewriteCond %{REQUEST_URI} /$ RewriteCond %{REQUEST_URI} !^/wp-admin/.* RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} ="" RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_ RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/cache-enabler/%{HTTP_HOST}%{REQUEST_URI}index.html -f RewriteRule ^(.*) /wp-content/cache/cache-enabler/%{HTTP_HOST}%{REQUEST_URI}index.html [L] </ifmodule> # END Cache Enabler
Also, I noticed that there still is a problem with the stock status – a product is still displayed as being in stock when the page is cached…
Thank you for your help!
- The topic ‘Problem with Woocommerce’ is closed to new replies.