Skip to content

Instantly share code, notes, and snippets.

@zeljkoprsa
Last active December 20, 2015 12:19
Show Gist options
  • Save zeljkoprsa/6130283 to your computer and use it in GitHub Desktop.
Save zeljkoprsa/6130283 to your computer and use it in GitHub Desktop.
XML code that updates rel canonical for a single product in Magento. You should read this article for more detailed info: http://www.adurolabs.com/blog/technical/how-to-add-rel-canonical-in-magento #RTFM
<reference name="head">
<action method="addLinkRel">
<rel>canonical</rel>
<href>http://awesome.site.com/your-main-product</href>
</action>
</reference>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment