I am an SEO executive and pretty new to Magento. I have got a project in which there are multiple URLs for a single product and all URLs have been indexed on Google. Here is an example of URL structure -
Also, the canonical URL for every URL is different. I want to understand why Magento is creating so many URLs for a single product. Also, I only want to keep the third URL structure as the main URL and all other URLs should either redirect to that URL or is there a way that the other URLs can be removed.
Any help will be appreciated.