I am looking for some way to slip the rel=canonical attribute for the particular article in the header page of this article
Code: Select all
<link href="URL OF ORIGINAL PAGE" rel="canonical" />
any thoughts appreciated
Moderator: General Support Moderators
Post by Graemezee » Fri Aug 11, 2017 10:06 am
Code: Select all
<link href="URL OF ORIGINAL PAGE" rel="canonical" />
Post by Graemezee » Wed Aug 16, 2017 4:13 pm
Code: Select all
$document =& JFactory::getDocument();
$document->addCustomTag('<link rel="canonical" href="URL OF ORIGINAL PAGE"/>');?>
Code: Select all
<?php $doc->addCustomTag( '<link rel="canonical" href="URL OF ORIGINAL PAGE";/>' );?>
Code: Select all
<?php $document->addCustomTag( '<link rel="canonical" href="URL OF ORIGINAL PAGE" />' );?>
Post by sozzled » Sat Feb 17, 2018 4:42 pm
Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”
© 2005 - 2024 Open Source Matters, Inc. All Rights Reserved.