Quantcast
Channel: PHP Blog Spot
Viewing all articles
Browse latest Browse all 42

How can I make a dynamic canonical tag on Magento

$
0
0

We generally recommend to hide internal site search from getting indexed /app/design/frontend/{your_package}/{your_theme}/template/page/html/head.phtml Add this code: <?php // code for show canonical tag on all page $current_url = Mage::helper('core/url')->getCurrentUrl(); if(!empty($current_url)) { $url2 = substr($current_url, 0, strpos($current_url, '?')); if(!empty($url2)) { ?> <link

The post How can I make a dynamic canonical tag on Magento appeared first on PHP Blog Spot.


Viewing all articles
Browse latest Browse all 42

Trending Articles