Magento: Change canonical URL for particular category only

– Go to the category page you want to change canonical URL in Magento Admin
– Click the tab “Custom Design”
– In the Custom Layout Update text box, paste this:



Change and with your desired URLs and save the category.

Basically, first action tag in the code removes old canonical URL and second action tag adds the canonical URL with the new value you specify.

Leave a Reply