Zen Cart Logo
Forums / General Questions / Cannot add to cart and cannot login after htaccess change

Cannot add to cart and cannot login after htaccess change

Views: 826

Results 1 to 2 of 2
17 Dec 2012, 1:52 PM
#1
ironchef avatar

ironchef

New Zenner

Join Date:
Dec 2012
Posts:
1
Plugin Contributions:
0

Cannot add to cart and cannot login after htaccess change

Hi

I am having an issue where I have zencart installed in a subdirectory called mysite.com. Then I use .htaccess to rewrite the URL as follows:

RewriteCond %{HTTP_HOST} mysite\.com [NC]
RewriteCond %{REQUEST_URI} !/mysite\.com/
RewriteRule (.*) /mysite\.com/$1 [L]

The site works great with all the requests appearing to work off /. I have updated the configure.php to specify a WS url of /.

Is there a reason why I cant add items to the cart and when I login it says "There was a security error when trying to login."

Any help or pointers appreciated.

17 Dec 2012, 10:23 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Cannot add to cart and cannot login after htaccess change

I am having an issue where I have zencart installed in a subdirectory called mysite.com. Then I use .htaccess to rewrite the URL as follows:
Why not just move ZenCart to the root of your account and dispense with the rewrite