Prevent generating 2 URLs when reindexing catalog URLs
Hello,
I set “Use Categories Path for Product URLs” to “NO”, but when I reindex the Catalog URL Rewrites it creates for each product one regular url (domain.com/product_name.html) and one for each category path (domain.com/category_path/product_name.html).
I’ve deleted all the product URL rewrites that contain category path, but when I reindex the Catalog URL Rewrites it creates them again. So, crawler module crawl all product urls that includes category path and it’s unnecessary. I can’t find to prevent to generating 2 urls when reindexing but it’ll be good if i can exclude them from crawling.
Can you give an example regexp pattern to filter them. I’m not good at regexp and couldn’t find a solution.
Thanks.