News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to cart doesn't work when www in the URL - PLEASE HELP!

Started by butchtones, July 18, 2012, 18:46:51 PM

Previous topic - Next topic

butchtones

Hello,
The add to cart feature isn't working when www is in the URL.  Could you please tell me how to fix this.  Thank you!

Working link: http://americanholt.com/component/virtuemart/canning/1034l833ah-detail?Itemid=0

Non working link:  http://www.americanholt.com/component/virtuemart/canning/1034l833ah-detail?Itemid=0

I edited .htaccess to:

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
# RewriteCond %{HTTP_HOST} ^www\.americanholt\.org$ [NC]
   RewriteRule ^(.*)$ http://americanholt.com/$1 [L,R=301]
## End - Custom redirects

robert

Im having the same issue, did you resolve this issue?

I have my .htaccess file redirecting to non www urls but for some reason - I can still access some VM url's if I manually insert the www - when I do VM will not add to cart.

using VM2 and J 1.5.26