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:



link_rel
http://loca.lho.st/old-canonical-url


canonical
http://loca.lho.st/new-canonical-url

Change http://loca.lho.st/old-canonical-url and http://loca.lho.st/new-canonical-url 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