- Posts: 37
- Thank you received: 0
Add To Cart
14 years 9 months ago #6999
by MSanad
Replied by MSanad on topic Re: Add To Cart
Ok here's the solution for anyone else that might run into this problem, I have found this on the VM forum.
add the following in your .htaccess right under mod_rewrite
###### Added by Forrest to insure AJAX cart works by force of www
#
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} =on
RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} !=on
RewriteRule .* http://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
#
########## End - Addition by Forrest
add the following in your .htaccess right under mod_rewrite
###### Added by Forrest to insure AJAX cart works by force of www
#
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} =on
RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} !=on
RewriteRule .* http://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
#
########## End - Addition by Forrest
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Offline
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
14 years 9 months ago - 14 years 9 months ago #7005
by ivan.milic
Replied by ivan.milic on topic Re: Add To Cart
[strike]Can you sumbit your virtuemart.cfg.php.[/strike]
Sorry I did not saw last post.
Sorry I did not saw last post.
Last edit: 14 years 9 months ago by ivan.milic.
Please Log in to join the conversation.
Time to create page: 0.102 seconds