Fix duplicated and trash rewrites in default Magento URL rewrite system (core_url_rewrite table)
This is just local rewrite of app/code/local/Mage/Catalog/Model/Url.php - copy to your Magento root folder, clean cache and run catalog url reindex.
More details about Magento URL rewrite duplicates
- Magento core_url_rewrite table excessively large
- Magento URL reindex (core_url_rewrite) duplicates patch
- Catalog url rewrites and duplicate url_keys.
- Created based on Fixes the catalog url rewrite indexer in Magento 1.7.x-1.9.x
- Duplicated product URL keys in Magento Community Edition (there is another solution described)
- Magento Enterprise patch which fix the same PATCH_SUPEE-389_EE_1.12.0.2_v2.sh