I have had some SEO feed back on a site I am developing for a client.
Basically the site is indexing both http and https pages.
I have turned on Canonical tags in the back end. To remove duplication it has been recommended that we remove the Canonical tags referencing the https pages and replace the with the corresponding http Canonical tags.
Is this a built in feature in Magento, or am I going to have to create my own module, check the page request type and insert the tag that way?
As I was just extending the Mage_Catalog_Block_category_View I only needed the _prepareLayout function. My Code is below