VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: frogybella on September 17, 2014, 14:06:16 PM

Title: Alias category doesn't work
Post by: frogybella on September 17, 2014, 14:06:16 PM
Good afternoon,

I have trouble with the category alias in virtuemart 2.6.8.
To reach a category I would like the link to be www.mywebsite/alias.html.
If I do that I have a 404 error.
If I put the title of the category it works.
Does anybody know why and how to correct that?

Thanks in advance.

Virginie
Title: Re: Alias category doesn't work
Post by: jjk on September 22, 2014, 20:28:50 PM
VirtueMart doesn't add a suffix to category names by default. You should leave it away. The search engines like Google don't need a suffix and ignore it anyway. In other words, it's useless.
If you try to force it somehow, it will create problems for the Joomla and VirtueMart routers (which build the SEF urls).  One thing you can do, is to replace the VirtueMart SEO suffix -detail in the VirtueMart configuration with .html for the product detail pages. (With your idea you would end up with urls like ...domainname/categoryname/.html/productname.html, which won't work)