News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to remove category name in product url

Started by toto2, November 11, 2014, 22:00:54 PM

Previous topic - Next topic

toto2

Hi,

How to remove the category name from the URL when a product is showed ?

For example
/category/subcategory/product.html
will be
/product.html

The reason is to not have a duplicate content when the same product is in two or more different categories

I need your help before put the website online

My configuration :
Joomla 2.5.27
Virtuemart 2.6.12
Sh404sef 4.4.01725

Thanks

jjk

#1
I didn't have a look at sh404sef since Joomla 1.6, because I consider it useless for url-management. Last known behaviour I'm aware of when used with VirtueMart was that it achieves compatibility with VM by disabling itself for VM urls. Also it makes large shops slow, because it generates really huge cache files.

Anyway - without sh404sef you can simply ignore your 'duplicate content' problem. A citation from Google:

Examples of non-malicious duplicate content could include:

    Discussion forums that can generate both regular and stripped-down pages targeted at mobile devices
    Store items shown or linked via multiple distinct URLs
    Printer-only versions of web pages

Also, VirtueMart is using a canonical url (points to the first category) when you have a product in multiple categories. So there is no 'duplicate content' problem.

Further reading:
https://support.google.com/webmasters/answer/66359?hl=en
https://support.google.com/webmasters/answer/139066
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

toto2