Post by Jeff600 » Fri Apr 16, 2021 11:55 pm

Hi,

We are currently having URL structure as domain.com/category/sub-category/product-name , We want this to be changed to domain.com/product-name by removing /category/sub-category from the product page urls.

Also another thing is when once we done this to avoid 404 errors, how can 301 redirect all old urls to new urls

Newbie

Posts

Joined
Fri Apr 16, 2021 6:41 pm

Post by straightlight » Sat Apr 17, 2021 1:16 am

OC version.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by johnp » Sat Apr 17, 2021 1:25 am

Jeff600 wrote:
Fri Apr 16, 2021 11:55 pm
Also another thing is when once we done this to avoid 404 errors, how can 301 redirect all old urls to new urls
Something like this would help:

https://www.opencart.com/index.php?rout ... search=301

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by JNeuhoff » Sat Apr 17, 2021 6:20 pm

We are currently having URL structure as domain.com/category/sub-category/product-name , We want this to be changed to domain.com/product-name by removing /category/sub-category from the product page urls
From a SEO perspective it doesn't make any difference. Just make sure the link canonicals are correct on your product page, they should be without cateory path by default.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Jeff600 » Sun Apr 18, 2021 4:59 pm

straightlight wrote:
Sat Apr 17, 2021 1:16 am
OC version.

open cart 2.2

Newbie

Posts

Joined
Fri Apr 16, 2021 6:41 pm

Post by Jeff600 » Sun Apr 18, 2021 5:01 pm

JNeuhoff wrote:
Sat Apr 17, 2021 6:20 pm
We are currently having URL structure as domain.com/category/sub-category/product-name , We want this to be changed to domain.com/product-name by removing /category/sub-category from the product page urls
From a SEO perspective it doesn't make any difference. Just make sure the link canonicals are correct on your product page, they should be without cateory path by default.
What do you mean by making suree link canonicals are correct i.e currently we are seeing /category/sub-category structure, how to remove that? can you please elaborate on how to do in opencart 2.2?

Newbie

Posts

Joined
Fri Apr 16, 2021 6:41 pm

Post by JNeuhoff » Mon Apr 19, 2021 5:44 pm

You don't get it, do you? The product page already has a link canonical in there without the category path, just for Google. For example, something like this:

Code: Select all

<link href="https://example.com/kingston-128mb" rel="canonical" />
while the URLs could include various category paths leading to the same product page, e.g.

/storage/flash-memory/kingston-128mb
/storage/kingston-128mb
/accessories/kingston-128mb
/kingston-128mb
etc.

A product can belong to different categories, including lower level categories. This makes perfect sense for user-friendly navigation and URLs. But for SEO purposes the link canonical is generated as described above. See this Google docs for more information.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Mon Apr 19, 2021 6:24 pm

Search for a canonical URL extension in the marketplace.

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


User avatar
Guru Member
Online

Posts

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

Users browsing this forum: No registered users and 158 guests