google一直试图在我的列标题上索引排序链接。我试图对他们应用rel=“noindex nofollow”,但没有成功。我不希望对整个页面执行此操作,因为页面上有其他链接,我希望紧跟在这些链接后面的不是此表中的列标题。
当前代码如下所示:
<th><div align="center"><?php echo $this->Paginator->sort('Registration.id', __('Number')); ?></div></th>
<th><div align="center"><?php echo $this->Paginator->sort('Registration.created', __('Joined')); ?></div></th>
<th><div align="center"><?php echo $this->Paginator->sort('Registration.profile_picture', __('Picture')); ?></div></th>
<th><?php echo $this->Paginator->sort('User.username', __("Username"), array('direction' => 'desc')); ?></th>
<th><?php echo $this->Paginator->sort('Registration.full_name', __('Name')); ?></th>
谢谢。
最佳答案
请参阅此链接,它可以帮助您以其他方式继续
http://www.marcofolio.net/webdesign/building_a_blog_with_cakephp_part_2_seo_and_management.html
关于php - 如何在cakephp列标题排序链接中添加rel =“noindex nofollow”引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17357375/