abantecart / abantecart-src

AbanteCart is a free PHP based eCommerce solution for merchants to provide ability creating online business and sell products online quick and efficient. AbanteCart application is built and supported by experienced enthusiasts that are passionate about their work and contribution to rapidly evolving eCommerce industry. AbanteCart is more than just a shopping cart, it is rapidly growing eCommerce platform
www.abantecart.com
Open Software License 3.0
141 stars 161 forks source link

improve: SEO - URL with subcategories #1178

Open ghost opened 5 years ago

ghost commented 5 years ago

I have found a canonical url issue, which is caused by different urls for the same subcategory or items. The problem is that the deep product or category will not have the full url with the subcategories. For example my item under category: 1 should look www.test.com/1/item.

The problem is that it will load at www.test.com/item.

We need to have one fix URL for each product and category ,which includes every subcategory in the URL (e.g: www.test.com/clothes/tshirt/fancycategory/trex-tshirt1).

And it should be the same easy to follow schema in the breadcrumb area on site.

It will solve various seo and crawling issues.

It could be an optional thing, but i think its very recommended and would have it as a default standard permanent setting. If you have a temporary workaround (solution) for it, please let me know.

BasaraABC commented 5 years ago

One product can be assigned to several categories as well as no category at all. Canonical url should be www.test.com/item in my opinion

BasaraABC commented 5 years ago

Check this 3rd party tool https://marketplace.abantecart.com/seo_images

ghost commented 5 years ago

That sound like a good option, however the product should be only reachable with 1 url. Crawler can sometimes find 3 url which work for the same product. And see products with duplicate meta/titles etc, and it confuses google with ranking manipulation, since we have more url of the same pages. So any good fix would be to just limit the pages to 1 seo URL.

And the breadcrumb should work the same way. If we have multi level subcategory the breadcrumb can only see 1 category, thats also confusing.

BasaraABC commented 5 years ago

Canonical urls already included in AbanteCart. Enable SEO Urls in your store and check product pages

ghost commented 5 years ago

Yeah i know about it, its a very good thing, i guess it was also recommended by me, but the problem is about crawlers/robots who find the product page with 3 identical URL. for example

www.test.com/item www.test.com/category1/category2/item www.test.com/category2/item

I think the best is to have the longest url with this (and only), so google and people know where they are. Also if there are multiple same item name how can they decide by SEO URL.

In breadcrumb(s) URLs you can see this too.

Case1: If you open a product which has only 1 category, and you click-by-click, it will have normal and full url including its category.

Case2: If you use site search and open product: it won't have the category in URL. Its duplicated already for search robots.

If there are 2 or more categories for a product, first root category wont be visible again.

A normal and easy solution would be to use only 1 seo url for the same product. Its not a problem that it can be reached various ways, but crawlers and people should not be able to find more than 1 URL for the same page.

Breadcrumbs should include all category and subcategories on the top of pages with their correct URLs (if enabled the layout).

For URLs it should have the full URL as canonical (which has all categories and show the depth of product).

ghost commented 5 years ago

So in core when you build Seo URL all we need is to have full path with sub categories, and have the same full link in canonical link and breadcrum tags. What do you think?

abantecart commented 5 years ago

Sounds good. Scheduling this update for 1.2.1.4.

Thank you

abantecart commented 5 years ago

I checked SEO URLs. I think we build URLs correctly in all the places.

I case of one product in 2 different categories, URLs will look as following: http://localhost/amazon-gift-certificate-update?path=36_38 http://localhost/amazon-gift-certificate-update?path=58_60

Path is necessary to identify the category referenced and should not be treated by google.

BasaraABC commented 5 years ago

I did not see any commits. What is changed? Product assigned to several categories work in old style (which I think is correct) based on from what category customer visit product

http://localhost/abantecart/eyes/absolue-eye-precious-cells http://localhost/abantecart/skincare/absolue-eye-precious-cells http://localhost/abantecart/books/absolue-eye-precious-cells

abantecart commented 5 years ago

There was no commit as it worked correctly for me.