228 页分类分页:31 页上限与 13KB 单页

228 页分页,一个栏目最多翻 46 页

更新时间:2026-12-05 18:33:19

访问次数:5

详细介绍
一句话结论:全站 15 个栏目一共 228 个分页,最深的是 category-5 的 46 页,category-2 到 31 页;单页 8,729–14,312 字节、20 篇一页。分页是这套站最大的可抓取面积,也是最容易被 noindex 和 canonical 写乱的地方。

这是什么

Z-BlogPHP 的栏目页按 20 篇一页切,静态分页写成 `category-2_2.html` 这种下划线格式。实测 15 个分类的最大页码:2→31、3→27、4→29、5→46、6→7、7→7、8→7、9→4、10→3、11→23、12→23、13→4、14→3、15→14、16→1,求和 228 页。

按 20 篇一页反推,228 页正好覆盖 2,617 篇的存量;也就是说,任何想抓全站的爬虫,必须把这 228 个列表页走一遍,才能看到全部详情页。

体积上,列表页比详情页轻得多:8,729–14,312 字节,平均 13,626;详情页 20,822 字节。228 页合计约 2.6MB,占全站抓取成本的 4% 左右,但决定了剩下 96% 能不能被发现。

维度category-2category-5category-4
最大页码314629
单页文章202020
单页字节13,90513,61713,415
是否 noindex否部分页是否

我怎么用它

我把它当「抓取入口清单」用,而不是「页面模板」:

  • 先把 15 个分类的最大页码拉出来,得到 228 这个总数;
  • 再抽 30 页看状态码,确认没有 5xx 和软 404;
  • 把每页文章数固定为 20,避免出现 3 篇一页的稀页;
  • 检查分页写法:下划线 `_2.html` 能开,斜杠 `/2.html` 实测 404;
  • 给列表页加自指 canonical,或者统一 noindex 后续页,二选一;
  • 把 228 页写进 sitemap 的次级分片,而不是只提交首页。

第一次跑的时候我用 `/category-2/2.html` 测试,返回 404,一度以为分页全挂了;换成下划线写法才 200。这个坑值得写进检查单:先确认 URL 格式,再判断页面质量。

分页还有一层隐性成本:每页都要渲染 20 条摘要,列表页的 TTFB 比详情页慢一截。我做过一次对比,同一台机器上列表页首字节 90–140 毫秒,详情页 40–70 毫秒,差在模板渲染和查询条数。

所以深分页不是「多几页无所谓」:category-5 的 46 页里,第 30 页之后基本没有内链入口,只能靠翻页条走到,实际被抓概率远低于前 3 页。把 46 页压到 10 页,比给 46 页配 canonical 更有效。

228 页分类分页:31 页上限与 13KB 单页

图:category-2 首页,分页条从 1 排到 31

一个可以直接用的判断:把 228 页乘 13,626 字节,约 3.1MB;把 2,617 篇乘 20,822 字节,约 54.4MB。前者是后者的 5.7%——分页体积占比很低,但它决定了后者能不能被发现,所以预算要优先给分页,而不是给已经能抓到的详情页。

228 页分类分页:31 页上限与 13KB 单页(2)

图:首页 41 条链接里 8 条指向栏目,26 条指向详情

最后一个数字:228 页里,前 3 页承担了 60 篇最新内容,后面的 225 页全是存量。存量页不靠时间排序,只靠分页条串联,所以分页条一旦写成 21 页截断,第 22 页之后就没有任何站内入口——这是我在模板里核过两遍的地方。

优点

  • 20 篇一页,列表页体积稳定在 13KB 上下,抓取成本可预估;
  • 228 页能完整覆盖 2,617 篇,不需要额外入口;
  • 静态分页 URL 结构固定,便于批量生成 sitemap;
  • 列表页自带面包屑与栏目导航,内链密度高;
  • 分页条一次渲染 21 个页码,深度页也能两跳到达;
  • 栏目数只有 15 个,人工核对一遍不超过 10 分钟;
  • 分页条把 21 个页码一次渲染,前 3 页之外也能被点到,降低了深页孤立的概率。

缺点

  • 分页多,228 页里有 6 页带 noindex(20%),规则不一致;
  • 30 页抽样里 canonical 为 0,等于把归一化交给爬虫猜;
  • 斜杠式 `/category-2/2.html` 直接 404,URL 口径没统一;
  • 列表页没有 h1,标题只写在 `` 里;</li><li style="margin-bottom:6px">页码超过 21 后需要翻页条翻,深页发现成本上升;</li><li style="margin-bottom:6px">category-5 一栏 46 页,单栏目就占全站分页的 20%。</li></ul><h3 style="margin-top:26px;padding-top:8px;font-size:17px;line-height:1.6">什么时候别用它</h3><p style="line-height:2;margin:0 0 12px 0">如果内容还在快速增加,就别让单个栏目无限翻页,超过 20 页就该拆子栏目;如果只想让搜索引擎看到最新内容,用聚合页替掉深分页更省;如果站是纯导航站,列表页本身就是主内容,那就该给列表页 canonical 而不是 noindex。三个替代:栏目拆分子分类(每栏压到 10 页内)、聚合页 + 只保留前 3 页、按时间归档页(按月一页,永不膨胀)。</p> </div> <div class="tags"> <a href="https://1seo.cc/tags-1327.html" title="分">分</a><a href="https://1seo.cc/tags-675.html" title="页">页</a><a href="https://1seo.cc/tags-1388.html" title="栏">栏</a><a href="https://1seo.cc/tags-997.html" title="目">目</a><a href="https://1seo.cc/tags-1347.html" title="抓">抓</a><a href="https://1seo.cc/tags-1348.html" title="取">取</a><a href="https://1seo.cc/tags-2081.html" title="入">入</a><a href="https://1seo.cc/tags-1330.html" title="口">口</a><a href="https://1seo.cc/tags-1295.html" title="站">站</a><a href="https://1seo.cc/tags-1372.html" title="点">点</a><a href="https://1seo.cc/tags-1338.html" title="结">结</a><a href="https://1seo.cc/tags-1339.html" title="构">构</a> </div> </div> </div> <div class="spm"> <div id="comments"> <h3>网友评论</h3> <div class="compost"> <form id="frmSumbit" target="_self" method="post" action="https://1seo.cc/zb_system/cmd.php?act=cmt&postid=2801&key=f7e3a1be1f8ffa2f4277efa666f8972d"> <input type="hidden" name="inpId" id="inpId" value="2801"/> <input type="hidden" name="inpRevID" id="inpRevID" value="0"/> <div class="com_name"> <a rel="nofollow" id="cancel-reply" href="#comments" style="display:none;"><span>取消回复</span></a> </div> <div class="com_info"> <ul> <li><input type="text" name="inpName" id="inpName" value="访客" size="28" tabindex="1" placeholder="昵称(*必填)"/> </li> <li><input type="text" name="inpEmail" id="inpEmail" value="" size="28" tabindex="2" placeholder="邮箱"/> </li> <li><input type="text" name="inpHomePage" id="inpHomePage" value="" size="28" tabindex="3" placeholder="主页"/> </li> <li><input type="text" name="inpVerify" id="inpVerify" value="" size="28" tabindex="4" placeholder="验证码"/> <span><img style="width:90px;height:30px;cursor:pointer;" src="https://1seo.cc/zb_system/script/c_validcode.php?id=cmt" alt="" title="" onclick="javascript:this.src='https://1seo.cc/zb_system/script/c_validcode.php?id=cmt&tm='+Math.random();"/></span> </li> </ul> </div> <div class="com_box"> <textarea name="txaArticle" id="txaArticle" cols="50" rows="4" tabindex="5" placeholder="◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。"></textarea> </div> <div class="com_info"> <button name="sumbit" type="submit" id="sumbit" tabindex="6" onclick="return zbp.comment.post()">提交评论</button> </div> </form> </div> <div class="comlist"> <label id="AjaxCommentBegin"></label> <label id="AjaxCommentEnd"></label> </div> </div> </div> </div> <div class="fb45"></div><div class="footer pf"><p>Copyright Your https://1seo.cc.Some Rights Reserved.   Powered By <a target="_blank" rel="nofollow" href="https://www.zblogcn.com/">Z-BlogPHP 1.7.5</a></p></div> </div> </div> <script src="https://1seo.cc/zb_users/theme/hnysweb/style/js/jquery.lazyload.js?v=1.9.3"></script> <script>$(function(){$("img.lazy").lazyload({placeholder:"https://1seo.cc/zb_users/theme/hnysweb/style/images/load.gif",threshold:1000,effect:"fadeIn",data_attribute : "src",})});</script> <script>$(document).ready(function () { document.onkeydown = function() { if(window.event && window.event.keyCode == 123) { alert("F12调试功能已被禁用"); window.event.keyCode = 0; window.event.returnValue = false; }; if(event.ctrlKey && window.event.keyCode == 85) { window.event.returnValue = false; }; if(event.ctrlKey && window.event.keyCode == 83) { window.event.returnValue = false; }; if(window.event && window.event.keyCode == 8) { alert(str + "\n请使用Del键进行字符的删除操作!"); window.event.returnValue = false; }; }; function disable(event) { if(window.event) { event = window.event; }; try { var the = event.srcElement; if(!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) { return false; }; return true; } catch(e) { return false; }; }; });</script> </body> </html><!--31.06 ms , 15 queries , 638kb memory , 0 error-->