Magento – How to make canonical full/path/with/category/product-url

canonicalseo

Question again. Sorry, cant find the answer 🙁 Magento 1.9. I have several same pages:

1) domain/category/subcategory/product-page
2) domain/category/product-age
3) domain/product-page

When I use canonical configuration – I get domain/product-page as canonical. But I need FULL url domain/category/subcategory/product-page canonical. Or 404/301 from second and third type to first

Best Answer

You don't want to do that - certainly not if SEO is of any value - that's because with the full path including categories and subcategories in them products that you have get duplicated several times with different url, even if you have every single product in one category and one subcategory they'd get duplicated just with the category in the url and the category or the sub category. Google doesn't like this so neither page will rank.

You want to use the internal functionality within System => Configuration => Catalog => Search Engine Optimization and set “Use categories path for product URL’s to “no”.

Product urls will then just display as domain.com/product.

Related Topic