自在的小朋友 發表於 2025-6-14 16:32:58

新手勇闯dz3.5,收录真是太差了,耗时半天手搓数据停靠。

新手呆萌勇闯 Discuz 3.5 ,做了个小站,努力压到几K,但是一个月都不见收录,甚是烦躁,昨天无事耗时半天手搓数据停靠办法<br /><br />1.每日更新一点吧,但是展现的数据其实也就第一页,小动物爬过来,看两眼内容没变,也就没了心情。想着做随机排序,这样每次都是新鲜的内容,收录会好点,不过又担心Mysql吃不消,只能研究forum_forumdisplay.php自身逻辑,轻改一下,完美实现。<br /><br /><br /><br />2.当做了随机显示的功能后,沾沾自喜时,有想起来,反复的内容重叠会被各类引擎判定数据作弊,一怒之下耗时半天爆改排序逻辑及增加思维性数据停靠,<br /><br /><br />为什么叫有数据停靠,其实是当用户登录后,每次加载都是随机性的(正常功能)<br />但是,但是,但是没有登录的情况下,瞬展的12条内容只有1、2与6、7条发生随机,当判断用户没有进行连接点击事件时,不进行内容随机,也不进行内容替换,当判断未登录用户发生2-4次点击后,开始进行数据替换, 因为不想加小动物库,只能以用户行为入手,相当于小动物爬2-4个链接,就给它更换1、2、6、7的数据,不爬就瞬展12条内容。完美的模拟了真实且又活跃的行为,达到数据先思维停靠,在展示的办法。<br /><br />新手怒闯,大佬勿揍。 www.bisousou.com。<br />数据<em>, </em>内容<em>, </em>停靠<em>, </em>随机<em>, </em>但是

自在的小朋友 發表於 2025-6-14 16:34:30

一夜后,效果立竿见影,还不错,还是内容少,慢慢来。

自在的小朋友 發表於 2025-6-14 18:45:48

今日无聊,怒写伪静态强跳,各位拿去,有益收录。大佬勿揍。<br /><br /><ol><li>location / {<br /><li>&nbsp; &nbsp; if ($args ~* &quot;^mod=forumdisplay&amp;fid=(+)&amp;page=(+)&amp;filter=typeid&amp;typeid=(+)&quot;) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;rewrite ^/forum\.php$ /forum-$1-$2-$3.html? permanent;<br /><li>&nbsp; &nbsp; }<br /><li>&nbsp; &nbsp; if ($args ~* &quot;^mod=forumdisplay&amp;fid=(+)&amp;page=(+)&quot;) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;rewrite ^/forum\.php$ /forum-$1-$2.html? permanent;<br /><li>&nbsp; &nbsp; }<br /><li>&nbsp; &nbsp; if ($args ~* &quot;^mod=viewthread&amp;tid=(+)&amp;page=(+)&quot;) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;rewrite ^/forum\.php$ /thread-$1-$2.html? permanent;<br /><li>&nbsp; &nbsp; }<br /><li>&nbsp; &nbsp; if ($args ~* &quot;(^|&amp;)_dsign=[^&amp;]+&quot;) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;set $args $1;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;rewrite ^ $uri?$args? permanent;<br /><li>&nbsp; &nbsp; }<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/forum-(+)-(+)-(+)\.html$ $1/forum.php?mod=forumdisplay&amp;fid=$2&amp;page=$3&amp;filter=typeid&amp;typeid=$4 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&amp;topic=$2 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/article-(+)-(+)\.html$ $1/portal.php?mod=view&amp;aid=$2&amp;page=$3 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/forum-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&amp;fid=$2&amp;page=$3 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/thread-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&amp;tid=$2&amp;extra=page%3D$4&amp;page=$3 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/group-(+)-(+)\.html$ $1/forum.php?mod=group&amp;fid=$2&amp;page=$3 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&amp;$2=$3 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/blog-(+)-(+)\.html$ $1/home.php?mod=space&amp;uid=$2&amp;do=blog&amp;id=$3 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/(fid|tid)-(+)\.html$ $1/index.php?action=$2&amp;value=$3 last;<br /><li>&nbsp; &nbsp; rewrite ^([^\.]*)/(+*)-(+)\.html$ $1/plugin.php?id=$2:$3 last;<br /><li><br /><li>&nbsp; &nbsp; if (!-e $request_filename) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;return 404;<br /><li>&nbsp; &nbsp; }<br /><li>}</ol>

自在的小朋友 發表於 2025-6-14 18:48:06

<br />从做到发这个贴,昨晚收录4,截止现在收录36好开心呢。

一定 發表於 2025-6-14 19:37:00

<br />没看懂,啥意思,动态跳转到伪静态嘛<br />

TaC 發表於 2025-6-14 20:16:54

内容不错,顶你

TaC 發表於 2025-6-14 20:27:33

你啥机子?我添加后500错误,虚拟机

自在的小朋友 發表於 2025-6-14 20:40:45

<br />老师,这个是 Nginx 伪静态规则。我是主机不是虚拟机。

自在的小朋友 發表於 2025-6-14 20:41:40

<br />是的老师,动态跳转成伪静态。

一定 發表於 2025-6-14 21:14:55

<br />可以帮忙写一个圈子的嘛,我的圈子伪静态是:/buluo-12907-1-1.html这样的格式。
頁: [1]
查看完整版本: 新手勇闯dz3.5,收录真是太差了,耗时半天手搓数据停靠。