- By default in Magento, while assigning categories to the product. The Magento itself creates a URL rewrites based on each category which all going to be redirected to same product page.
- Different URLs for same page is a SEO issue as per many articles.[multiple-urls-for-the-same-page, Why do I have 2 different URL's for the same page – is this good practice?]
- Now how to overcome this is in Magento 2.x? Do we need to change the category path product URLs as 301 to actual product URL? I wish to do this without going to 3rd party modules.
Multiple URL Rewrites for the same product is SEO issue
301-redirectduplicatemagento2product-urlsseo
Best Answer
Multiple URLs explanation:
Reference: CANONICAL URLS AND DUPLICATE CONTENT IN MAGENTO [Amasty]
Issue faced in our site:
We use Amaty's module "amasty/module-unique-product-url" i.e Amasty_SeoSingleUrl.
Regarding the category path in the product URL, the configurations are disabled from both Magento default and Amasty configuration.
Still, in the sitemap, the product URL exists with a category path. The issue was an Amasty configuration bug. As at 1st point screenshot, it is set to No but Amaty checks one of the params which should work only in enabled configuration (enabling 1st field shows the rest of the fields). So enabled the 1st field, changed the configurtion of 2nd field as shown in screenshot and saved. Then again disabled the 1st field configurtaion and it solved the issue.