i have duplicate url problem. opencart 3.0.3.8
For products:
domain.com/product-name
domain.com/main-category/product-name
domain.com/main-category/sub-category/product-name
this link should always be opened
domain.com/product/product-name
For categories:
domain.com/main-category/sub-category/
domain.com/main-category/sub-category1/sub-category2
this link should always be opened
domain.com/sub-category1/
domain.com/sub-category2/
For products:
domain.com/product-name
domain.com/main-category/product-name
domain.com/main-category/sub-category/product-name
this link should always be opened
domain.com/product/product-name
For categories:
domain.com/main-category/sub-category/
domain.com/main-category/sub-category1/sub-category2
this link should always be opened
domain.com/sub-category1/
domain.com/sub-category2/
It is problem with every website that is using the OpenCart framework. OpenCArt is built in a way that it will have multiple URLs for the same product and sub-category. It is just a pain for SEO and indicates duplicate content that is bad for SEO and ranking.
If you are looking for a simple and reliable solution then I would suggest you add the canonical tag in the product and sub-category page manually in the files.
The canonical tag will tell the search engine to index only the canonical page and leave the rest page. Search engine results will show only the url that is present in the canonical tag.
on the product page. add canonical like this.
https://yourdomain/product-name
<link href="https://yourdomain/product-name" rel="canonical" />
https://yourdomain/category/product-name
<link href="https://yourdomain/product-name" rel="canonical" />
https://yourdomain/category/sub-category/product-name
<link href="https://yourdomain/product-name" rel="canonical" />
The same will go for the sub-category pages.
you can easily find the url of the sub-category and product page from the model function. Let me know if you are looking for codes.
If you are looking for a simple and reliable solution then I would suggest you add the canonical tag in the product and sub-category page manually in the files.
The canonical tag will tell the search engine to index only the canonical page and leave the rest page. Search engine results will show only the url that is present in the canonical tag.
on the product page. add canonical like this.
https://yourdomain/product-name
<link href="https://yourdomain/product-name" rel="canonical" />
https://yourdomain/category/product-name
<link href="https://yourdomain/product-name" rel="canonical" />
https://yourdomain/category/sub-category/product-name
<link href="https://yourdomain/product-name" rel="canonical" />
The same will go for the sub-category pages.
you can easily find the url of the sub-category and product page from the model function. Let me know if you are looking for codes.
Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations
Isn't the link canonical already being generated for product and category pages anyway on OpenCart 3? Hence, there shouldn't be any issues with SEO.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Absolutely correct.Isn't the link canonical already being generated for product and category pages anyway on OpenCart 3? Hence, there shouldn't be any issues with SEO.
There's no issue with duplicated content.
I think with Bing will be an issue. Their Guidelines mention about avoid duplicity in the content.
The canonical metatag is present but is present in all pages, including domain/product page. In this case, I could see an error from Bing telling me about the duplicity.
The canonical metatag is present but is present in all pages, including domain/product page. In this case, I could see an error from Bing telling me about the duplicity.
Hi! You can use seo_pro instead seo_url. All your products would be available by one link with correct redirects.
My extensions in marketplace. [ security | flexibility | speedup ]
Just in case you haven't found a solution yet, I'm using this extension to automatically generate canonical tags for all category and product pages. This also works for example when a category has 10 pages of products (e.g. using the "&page=" parameter in the URL). Normally these pages would be registered as duplicate content. The canonical tag however, shows search engines what URL to index as the original, rather than indexing page1, page2, page3, etc. of the same category with the same description and title.
On my OpenCart website, I have products like:
Ge 132 500 capsules
Ge 132 1000 capsules
Ge 132 2000 capsules.
To prevent duplicate content issues, I need to indicate that Ge 132 500 capsules is the main product for the 1000 and 2000 capsule variants. How can I achieve this?
Is it possible to program a text field in the product edit page where I can input the URL of the main product (in my case, the URL of the 500 capsules)? Also, if I leave this field empty, can it avoid setting up a canonical URL? Similar to this addon - https://www.opencart.com/index.php?rout ... ces&page=4
Ge 132 500 capsules
Ge 132 1000 capsules
Ge 132 2000 capsules.
To prevent duplicate content issues, I need to indicate that Ge 132 500 capsules is the main product for the 1000 and 2000 capsule variants. How can I achieve this?
Is it possible to program a text field in the product edit page where I can input the URL of the main product (in my case, the URL of the 500 capsules)? Also, if I leave this field empty, can it avoid setting up a canonical URL? Similar to this addon - https://www.opencart.com/index.php?rout ... ces&page=4
ge-132-500-capsuleslesa9512 wrote: ↑Mon Jan 08, 2024 10:08 pmOn my OpenCart website, I have products like:
Ge 132 500 capsules
Ge 132 1000 capsules
Ge 132 2000 capsules.
To prevent duplicate content issues, I need to indicate that Ge 132 500 capsules is the main product for the 1000 and 2000 capsule variants. How can I achieve this?
Is it possible to program a text field in the product edit page where I can input the URL of the main product (in my case, the URL of the 500 capsules)? Also, if I leave this field empty, can it avoid setting up a canonical URL? Similar to this addon - https://www.opencart.com/index.php?rout ... ces&page=4
ge-132-1000-capsules
ge-132-2000-capsules
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
Who is online
Users browsing this forum: No registered users and 312 guests