dedecms TAG标签列表分页链接优化方法

dedecms TAG标签列表分页链接优化方法,第1张

dedecmsTAG标签列表分页链接优化方法

上一篇文章介绍了DreamweaverDEDECMS频道列表页面连接的优化。现在介绍Dreamweaver软件标签标识列表分页查询的优化。

我们来看看DEDECMS(以5.6为例)中默认设置的标签列表分页查询:

第1页:
:主页:上一页<;李><ahref="/tags.php?/tagtag/1/">:1<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/2/">:2<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/3/">:3<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/4/">:4<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/5/">:5<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/6/">:6<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/1/">:下一页:结束页

第3页:

<李><ahref="/tags.php?/tagtag/1/">:主页:上一页<;李><ahref="/tags.php?/tagtag/1/">:1<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/2/">:2<;/a>;</李>
<;李class="thisclass"><a>3</a>;</李>
<;李><ahref="/tags.php?/tagtag/4/">:4<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/5/">:5<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/6/">:6<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/4/">:下一页:结束页

分页界面与频道列表页面相同。当连接返回到标签列表的默认首页时,详细地址已经更改,并且空有一部分“1/”,分散了权重值。而且比如在标签列表的第一页,“上一页”实际上是连接到“-1/”网页的。
这样的连接对于SEO百度搜索引擎优化不是很有效。或许以下是大家必须具备的实际效果:

在第1页:

<李><ahref="/tags.php?/tagtag/">:Homepage:2<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/3/">:3<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/4/">:4<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/5/">:5<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/6/">:6<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/2/">:下一页:结束页

第3页:

<李><ahref="/tags.php?/tagtag/">:主页:上一页<;李><ahref="/tags.php?/tagtag/">:1<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/2/">:2<;/a>;</李>
<;李class="thisclass"><a>3</a>;</李>
<;李><ahref="/tags.php?/tagtag/4/">:4<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/5/">:5<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/6/">:6<;/a>;</李>
<;李><ahref="/tags.php?/tagtag/4/">:下一页:结束页

为了达到这种实际效果,按照下面描述的方式做一些改变就足够了。

打开\include\arc.taglist.class.php修改:
1。查找

以下复制代码:
if($this-->;佩吉诺!=1)
改为
if($this->;PageNo==1||empty($this->;Pag))

2。查找

以下复制代码:
$prepage。="<李><ahref='"。$purl。”/$prepagenum/'>;上一页$indexpage="<;李><ahref='"。$purl。”/1/'>;主页

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/773586.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-03
下一篇 2022-05-03

发表评论

登录后才能评论

评论列表(0条)

保存