VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: keran on September 16, 2013, 14:07:41 PM

Title: Sef router customization?
Post by: keran on September 16, 2013, 14:07:41 PM
Hello,

Is it possible to do some customization's into virtuemart sef router?

for example now i have: www.domainexample.com/en/shop/1-category/3-subcategory/product-name-info
how to remove the 'shop' string from url: www.domainexample.com/en/1-category/3-subcategory/product-name-info
only for categories and product pages?
I tried sh404SEF but it occurs some multilingual errors because it need to disable the original Joomla language filter.

it's multilanguage store on Joomla! 2.5.14 and Virtuemart 2.0.22d
Title: Re: Sef router customization?
Post by: Maxim Pishnyak on September 16, 2013, 17:18:41 PM
Quote from: keran on September 16, 2013, 14:07:41 PM
how to remove the 'shop' string from url: www.domainexample.com/en/1-category/3-subcategory/product-name-info
only for categories and product pages?
Currently only by creating individual menu items in 'hidden menu' for each page. And doing any kind of such SEF simplification could have bad impact on SEO. Some theory is here http://forum.virtuemart.net/index.php?topic=117507
Title: Re: Sef router customization?
Post by: jjk on September 17, 2013, 19:16:29 PM
Quote from: keran on September 16, 2013, 14:07:41 PM
for example now i have: www.domainexample.com/en/shop/1-category/3-subcategory/product-name-info
how to remove the 'shop' string from url: www.domainexample.com/en/1-category/3-subcategory/product-name-info
only for categories and product pages?
I tried sh404SEF but it occurs some multilingual errors because it need to disable the original Joomla language filter.
it's multilanguage store on Joomla! 2.5.14 and Virtuemart 2.0.22d

If you want your shop categories to show on your frontpage, that is pretty easy by making "Shop" your frontpage link. In this case you would have to select 'VirtueMart ยป Front page' ('VirtueMart Categories Layout' works, too) as the 'Menu Item Type' for your 'Shop' menu item.

You don't need sh404sef to achieve this on a multilingual site (using it usually just creates additional problems).

You can see a working example, if you follow the link to the shop mentioned in this forum post: http://forum.virtuemart.net/index.php?topic=110005.0
However, at present this shop doesn't use subcategories. But I think it shows the SEF urls exactly like you want them.
Title: Re: Sef router customization?
Post by: keran on September 19, 2013, 08:55:23 AM
Thank You jjk but this dosn't work for me :/ and i dont know why :(

for Polish links i have always added 'sklep' /sklep/1category/product
and for English 'shop' /en/shop/1-category/product
Title: Re: Sef router customization?
Post by: jjk on September 19, 2013, 13:51:31 PM
Quote from: keran on September 19, 2013, 08:55:23 AM
Thank You jjk but this dosn't work for me :/ and i dont know why :(

Can you post a link to your frontpage here, so that somebody can have a look at your menu structure?
Title: Re: Sef router customization?
Post by: keran on September 21, 2013, 23:25:17 PM
I can't show You this online, because it still has sh404sef enabled with the short link used on several forums, youtube etc.
www.fashion-style.com.pl
I want to first make the same url's without sh404sef because it cause lot of errors on language switcher, search plugin and currency.

I try to configure copy of this page locally, some screens in attachment:
Now 'pl' lang url are ok - only 'en' still contains 'shop' segment in url.



[attachment cleanup by admin]
Title: Re: Sef router customization?
Post by: Maxim Pishnyak on September 22, 2013, 11:33:26 AM
Quote from: keran on September 21, 2013, 23:25:17 PM
... it still has sh404sef enabled...
Only sh404sef developer could you support then. But I don't think that it's easy to be supported on the forum with such structure - http://anything-digital.com/forum/extension/sh404sef/ . 521 unsorted by extension threads! This is unbelievable.

sh404sef installed on VM system doesn't allow support mentioned cart system on current forum.

VM is able to work without sh404sef well.

And VM doesn't work good with sh404sef as well.
Title: Re: Sef router customization?
Post by: keran on September 22, 2013, 12:23:11 PM
Maxim, I agree that anything-digital support is poor :/
Now I search for support here because i try to configure VM without sh404SEF - only with the original Joomla! and Virtuemart sef router.
Title: Re: Sef router customization?
Post by: Maxim Pishnyak on September 22, 2013, 13:14:17 PM
Did you uninstall sh404sef?
Title: Re: Sef router customization?
Post by: keran on September 22, 2013, 17:59:37 PM
Yes, I uninstall it. Cleared cache and it's the same:
PL: /category-alias-pl/product-alias-pl-info   and this is beauty URL :)
EN: /lang(en)/menu-alias(shop)/category-alias-en/product-alias-en-info   only this /menu-alias(shop)/ is too much :(

I tried the JJK solutions without success :/
On ...://www.*******.com/ it is working as I need. (url modified by jjk  ;) )
Title: Re: Sef router customization?
Post by: Maxim Pishnyak on September 26, 2013, 15:34:53 PM
At this point you could pm me access for more faster result for both of us.
Title: Re: Sef router customization?
Post by: keran on September 26, 2013, 21:30:34 PM
I did it! :) with jjk description and additional use of admin tools from akeeba. Cleared tmp, sessions and database repair.
Thanks.