Post by effectgroup » Fri Oct 18, 2024 4:15 pm

Hello, is it possible to remove category/subcategory from product URL?
For example:
www.domain.com/category/subcategory/product1
www.domain.com/category/product1
TO:
www.domain.com/product1
I want when you click from category page to a product to remove category and subcategory from product URL.
Thanks

Newbie

Posts

Joined
Wed Aug 21, 2019 6:44 pm

Post by by mona » Fri Oct 18, 2024 6:42 pm


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ADD Creative » Fri Oct 18, 2024 6:54 pm

You would have to modify the code or use and extension for that.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Fri Oct 18, 2024 7:12 pm

ADD Creative wrote:
Fri Oct 18, 2024 6:54 pm
You would have to modify the code or use and extension for that.
I believe there are plenty of SEO extensions that do this sort of thing.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by effectgroup » Fri Oct 18, 2024 8:34 pm

paulfeakins wrote:
Fri Oct 18, 2024 7:12 pm
ADD Creative wrote:
Fri Oct 18, 2024 6:54 pm
You would have to modify the code or use and extension for that.
I believe there are plenty of SEO extensions that do this sort of thing.
Would you recommend some?

Thanks

Newbie

Posts

Joined
Wed Aug 21, 2019 6:44 pm

Post by paulfeakins » Mon Oct 21, 2024 6:46 pm

effectgroup wrote:
Fri Oct 18, 2024 8:34 pm
Would you recommend some?
Only this list of trusted developers: https://www.antropy.co.uk/blog/good-qua ... xtensions/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by grgr » Sat Oct 26, 2024 6:24 am

Why? I don't entirely know, but woud having the category in the URL not help with search? Seems counter productive.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by ADD Creative » Sat Oct 26, 2024 6:28 pm

grgr wrote:
Sat Oct 26, 2024 6:24 am
Why? I don't entirely know, but woud having the category in the URL not help with search? Seems counter productive.
The issue probably is that the canonical tag and site map links don't have the categories in the URL. This gives search engines mixed signals as the on site links don't match the other links. At the very least it wastes crawl budget, especially on large sites when you multiply it by all the URL parameter combinations.

The issue with removing the categories is you will lose breadcrumbs, which could be counter productive for user experience. The canonical URL is the most likely to be indexed and this will be missing breadcrumbs and the categories in the URL anyway.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by nonnedelectari » Sat Oct 26, 2024 9:09 pm

ADD Creative wrote:
Sat Oct 26, 2024 6:28 pm
grgr wrote:
Sat Oct 26, 2024 6:24 am
Why? I don't entirely know, but woud having the category in the URL not help with search? Seems counter productive.
The issue probably is that the canonical tag and site map links don't have the categories in the URL. This gives search engines mixed signals as the on site links don't match the other links. At the very least it wastes crawl budget, especially on large sites when you multiply it by all the URL parameter combinations.

The issue with removing the categories is you will lose breadcrumbs, which could be counter productive for user experience. The canonical URL is the most likely to be indexed and this will be missing breadcrumbs and the categories in the URL anyway.
If the canonical url differs from the advertised url, it means an additional crawl per product at most.
By the way, the OC google sitemap feed prints out both the product urls with and without categories, which, in the former case, is rather useless when the canonical is set to without.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by ADD Creative » Sat Oct 26, 2024 11:58 pm

nonnedelectari wrote:
Sat Oct 26, 2024 9:09 pm
By the way, the OC google sitemap feed prints out both the product urls with and without categories, which, in the former case, is rather useless when the canonical is set to without.
That issue was fixed from 3.0.3.8 onwards.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by nonnedelectari » Sun Oct 27, 2024 12:38 am

ADD Creative wrote:
Sat Oct 26, 2024 11:58 pm
nonnedelectari wrote:
Sat Oct 26, 2024 9:09 pm
By the way, the OC google sitemap feed prints out both the product urls with and without categories, which, in the former case, is rather useless when the canonical is set to without.
That issue was fixed from 3.0.3.8 onwards.
ah, good.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by GeekoDev » Sat Nov 09, 2024 3:49 am

For removing category and subcategory paths from product URLs, our Complete SEO extension is a great solution. It lets you create clean, simplified URLs and offers additional SEO tools to boost your store’s visibility. Check it out here: Complete SEO Package.

Image
Best quality modules - Top support - Check GeekoDev Extensions


User avatar
Newbie

Posts

Joined
Thu Nov 23, 2017 7:09 pm

Who is online

Users browsing this forum: Bing [Bot] and 13 guests