I want to achieve product URLs based on product attribute for product page only. I have product attribute manufacturer, having drop downs such as lg, samsung, motorola etc.
My store category structure looks like as below:
Currently my product page opens directily as - https://www.mywebsite.com/product-1.html
I'm not using Use Categories Path for Product URLs
of System/Configuration/Catalog/Search Engine Optimization
.
This is setted as false.
I wanted to rewrite or set product page URL in following way.
https://www.mywebsite.com/lg/product-1.html
https://www.mywebsite.com/samsung/product-2.html
Here, lg and samsung are having manufacturer options and it's value defined at product level. Values will be unique.
Also, I have other categories in which this product already belongs. So can not use categories path for product URLs
as this creates same product duplicate issue with different category.
SEO settings correctly for this:
Use Categories Path for Product URLs -> NO
Create Permanent Redirect for URLs if URL Key Changed -> Yes
Use Canonical Link Meta Tag For Categories -> Yes
Use Canonical Link Meta Tag For Products -> No
Having single Magento 2.3
single store with single website, offering 1000 simple products.