Strip parent categories from url to avoid duplication

Strip parent categories from url to avoid duplication
In Opencart you can open the same subcategory with different URL addresses like so:

http://site.com/parentcategory/subcategory1/subcategory2/subcategory3
http://site.com/subcategory3

The canonical tag doesn't help the search engines because it is the same as the above URLs and this leads to duplicate content.

This plugin allows you to remove all parent categories from the URL to avoid duplication:

For example:
- Before the plugin the URLs will be http://site.com/parentcategory/subcategory1/subcategory2/subcategory3 and http://site.com/subcategory3
- After the plugin the URL will be only http://site.com/subcategory3

The modification is made with the built in extension installer and doesn't require vqmod or coding skills.
It was tested on opencart 1.5.x to 2.1.x and it works.
After version 2.1.0.2 and before 1.5.0 the modified file is located elsewhere and this mod will not work.
Please read the documentation before proceeding with installation.
Created by Advento.bg




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2, 1.5.4, 1.5.4.1, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2

Last Update
3 Jan 2019

Created
28 Aug 2016
644 Downloads
10 Comments
Advento
Advento
Member since: 28 Aug 2016

View all extensions Get Support