Hey guys,
I have tried various combinations in the htaccess file. At best I am able to make everything display, but break my cart... the "add to cart" button brings up my cart, but no products are added. At worst, my Zencart folder is ignored and it tries to redirect me to example.com/my-product-category-c1
Here are the contents of my htaccess file, without my attempts at non-www to www redirection. Would anyone be able to tell me how I can implement non-www to www redirection without breaking my shopping cart?
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
# Make sure to change "test_site" to the subfolder you install
ZC. If you use root folder, change to: RewriteBase /
RewriteBase /online_store/
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU
If it matters, I do have non-www to www redirection working properly on the rest of the site, using htaccess in the root folder. It's just when I get into the Zencart folder, online_store, and it's custom .htaccess file that I run into trouble.
Does anyone know what I add to the code above to make it work?
Best Regards,
Daniel
Bookmarks