News:

Looking for documentation? Take a look on our wiki

Main Menu

Activate seo but exclude cart

Started by kermitfrog, March 31, 2016, 11:10:12 AM

Previous topic - Next topic

kermitfrog

Is it possible to have the SEO option enabled, but to exclude the cart?
For example, by a rule in the .htaccess?

PHP 7
Virtuemart 3.0.14
Joomla 3.5.0

I tried putting a .htaccess with "RewriteEngine off" in the subdirectories
/components/com_virtuemart/views/cart
/components/com_virtuemart/views/user

And I tried some lines in the root .htaccess like
RewriteRule ^view/cart - [L]
RewriteRule ^view/user - [L]
RewriteRule ^index.php?option=com_virtuemart&view=cart - [L]
RewriteRule ^index.php?option=com_virtuemart&view=user - [L]

But nothing works.


Background:
I've a Virtuemart System with multiple subdomains und multiple shopping carts (menu items) using the virtual domains addon.

When I disabled the SEO option in Virtuemart, everything works fine.
But having the SEO option enabled, some links point to the homepage of the shop, not back to the cart.

For Example when editing the user details or within the cart module

Joomla SEO OFF and Virtuemart SEO OFF, the link looks like this:   index.php?option=com_virtuemart&view=cart   (this works)
Joomla SEO ON but Virtuemart SEO OFF, the link looks like this: view/cart   (this also works)
Joomla SEO ON and Virtuemart SEO ON, the link looks like this: /Component/virtuemart/?Itemid=1073      (this doesn't work)

This /Component/virtuemart/?Itemid=1073   (different shop = different itemID) shows the virtuemart homepage, not the cart.