News:

Looking for documentation? Take a look on our wiki

Main Menu

Product Seo

Started by yrygvay, February 24, 2016, 09:22:30 AM

Previous topic - Next topic

yrygvay

Greetings dear. I want to ask about the possibility to set up a "beautiful" and the right kind of SEO URL for the category of goods in the store. (Example for the store the amount of goods 20 000)

Now the type of product will be:
http://reffrus.ru/shop/iek/modulnoe-oborudovanie/avtomaticheskie-vyklyuchateli/avtomaticheskie-vyklyuchateli-va-47-29/va-47-29-kh-ka-v/avt-vykl-va47-29-1r-1a-4-5ka-kh-ka-v-iek-SPAMетайл

but it is more correct for such cards will receive the product type link:
http://reffrus.ru/shop/id9875 (id virtuemart product)

and for a category can be left: http: //reffrus.ru/shop/iek/modulnoe-oborudovanie/avtomaticheskie-vyklyuchateli

It turns out that the user sees a short link that is more convenient for navigation.

I remember the first branch virtuemart could solve it with the aid of a router or can be used as it is now sh404sef, but can be a big problem with large directories.
Please suggest a solution to this problem.

Really do not want to move to Joomlashopping there with this there is not any problem and can be solved in the usual plug.

rjcroasdale

#1
I used the category slugs to change the SEF urls of long category names. For example category structure, /Widgets/Blue Widgets/A123-A224/ could be URL /widgets/blue/a123-a224/ eliminating the second widgets in the url using the slugs.

In your example

http://reffrus.ru/shop/iek/modulnoe-oborudovanie/avtomaticheskie-vyklyuchateli/avtomaticheskie-vyklyuchateli-va-47-29/va-47-29-kh-ka-v/
would become somthing like (i dont know about that first or last bit as i dont read that language)
http://reffrus.ru/shop/iek/modulnoe-oborudovanie/avtomaticheskie-vyklyuchateli/va-47-29/kh-ka-v/
or perhaps even
http://reffrus.ru/shop/iek/modulnoe/avtomaticheskie/va-47-29/kh-ka-v/

I used CSVi to import / export all the slugs for editing and index all the site to view the results. In my opinion the better url for SEO is the one Google can easily produce sitelinks, which is the one that has the directory stucture as above rather than /id9875 as url.

yrygvay

rjcroasdale
Here is an example of how to do the same ebey:

Card Product
http://www.ebay.com/itm/NEW-Cisco-Catalyst-WS-C2960X-24PS-wbr-Q-L-Network-Switch-24-x-GIGE-92W-2XSFP-/191807625217?&_trksid=p2056016.m2516.l5255

Card category
[сode]http://www.ebay.com/sch/-/51268/i.html[/code]


It turns out that the goods have a short way, as in the category and it is convenient.

I want to achieve the kind of categories:
site.com/shop/id923

and dyal categories:
site.com/shop/cars/lexus


and how to do it by your method, I do not understand.

Ghost

#3
In latest VM you can remove categories and suffix in product URLs (check out VM config -> SEO). So this:

http://reffrus.ru/shop/iek/modulnoe-oborudovanie/avtomaticheskie-vyklyuchateli/avtomaticheskie-vyklyuchateli-va-47-29/va-47-29-kh-ka-v/avt-vykl-va47-29-1r-1a-4-5ka-kh-ka-v-iek-SPAMетайл

becomes this:

http://reffrus.ru/shop/avt-vykl-va47-29-1r-1a-4-5ka-kh-ka-v-iek

Although there is currently an issue where removing category tree from product URL also removes it from category pages, only last category is used. I think the idea is to add a separate option for category URLs in the future release.

For now, if you want to remove categories from product URLs but keep them in category URLs, go to router.php and replace this:

if($this->full) {
if($parent_ids = $catModel->getCategoryRecurse($virtuemart_category_id,$catMenuId)){

$parent_ids = array_reverse($parent_ids) ;
}
} else {
$parent_ids[] = $virtuemart_category_id;
}


with this:

if($parent_ids = $catModel->getCategoryRecurse($virtuemart_category_id,$catMenuId)){

$parent_ids = array_reverse($parent_ids) ;
}


Category URLs will remain the same as you have now, but product URLs will become flat.

yrygvay

#4
Quote from: Ghost on February 24, 2016, 10:27:08 AM
In latest VM you can remove categories and suffix in product URLs (check out VM config -> SEO). So this:

Thank you very much, the project was on 3.0.9, and for some reasons are not updated, so I do not know about this useful innovation.