![]() |
zencart添加nofollow标签
nofollow 是一个HTML标签的属性值。它的出现为网站管理员提供了一种方式,即告诉搜索引擎”不要追踪此网页上的链接”或”不要追踪此特定链接。
我们在给zencart做站内优化的时候,可以为站点的内部链接添加 nofollow。比如:联系我们、关于我们、隐私保护、公司简介、网站后台等的链接可以把它们nofollow 掉,这样做,首页的PR值就不会传输给他们。 zencart加nofollow和普通html中是一样的,直接在模板里加就行了。 在a href 后面添加 rel=”nofollow” 例如默认模板中的登录按钮,在 /includes/templates/zccn/common/tpl_header.php 中 原来的代码是 代码: <a href=”<?php echo zen_href_link(FILENAME_LOGIN, ”, ’SSL’); ?>”><?php echo HEADER_TITLE_LOGIN; ?></a> 改为 代码: <a href=”<?php echo zen_href_link(FILENAME_LOGIN, ”, ’SSL’); ?>” rel=”nofollow”><?php echo HEADER_TITLE_LOGIN; ?></a> 涉及需要修改文件有可能包括: 1、/includes/templates/所在模版/common/tpl_header.php 2、/includes/templates/所在模版/common/tpl_footer.php 3、/includes/templates/所在模版/common/tpl_main_page.php 4、/includes/templates/所在模版/templates/tpl_ezpages_bar_header.php 5、/includes/templates/所在模版/templates/tpl_ezpages_bar_footer.php 6、/includes/templates/所在模版/templates/tpl_top_nav.php 7、/includes/modules/sideboxes/information.php |
| All times are GMT +8. The time now is 12:25 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.