联系官方销售客服

1835022288

028-61286886

求助 版主:官方研发技术组
为什么模块的列表页分页点击是404
类型:迅睿CMS 更新时间:2020-11-23 11:04:52 分页打不开

为什么模块的列表页分页点击是404啊,,是版本的bug还是什么呀

回帖
  • 官方研发技术-张伟
    #1楼    官方研发技术-张伟
    2020-11-16 08:58:03
    Chrome 0
    要找到为什么是404,分页前的地址发给我,还有404 的地址发给我,我来对比对比
  • 小白
    #2楼    小白
    2020-11-16 08:59:21
    Chrome 0
    官方研发技术-张伟 http://www.qxwxw.com/zikao/fudao/ 你看一下
  • 官方研发技术-张伟
    #3楼    官方研发技术-张伟
    2020-11-16 09:00:06
    Chrome 0
    这个简单,http://www.qxwxw.com/zikao/fudao/2.html,需要设置config/rewrite.php配置,否则他是找不到页面的,你帮他指引到这个地址上去
  • 小白
    #4楼    小白
    2020-11-16 09:07:39
    Chrome 0
    官方研发技术-张伟 这个规则该怎么设置啊,有没有相关的手册文章
  • 官方研发技术-张伟
    #5楼    官方研发技术-张伟
    2020-11-16 09:09:08
    Chrome 0
    你把文件config/rewrite.php内容复制上来,我给你写一个就行了
  • 小白
    #6楼    小白
    2020-11-16 09:17:52
    Chrome 0
    官方研发技术-张伟 <?php/** * URL解析规则 * 例如: 114.html 对应 index.php?s=demo&c=show&id=114 * 可以解析: "114.html" => 'index.php?s=demo&c=show&id=114', * 动态id解析: "([0-9]+).html" => 'index.php?s=demo&c=show&id=$1', */return ["sitemap.txt" => "index.php?s=sitemap",// 网站地图规则 /***********************下面写你自己的URL解析规则********************/ ////////////////////////////////////////////////////////////////////////////////////// // 院校表单规则---解析规则----开始 "yxzx\/([0-9]+).html" => "index.php?s=school&c=yxzx&m=index&cid=$1", "yxwd\/([0-9]+).html" => "index.php?s=school&c=yxwd&m=index&cid=$1", "zkzy\/([0-9]+).html" => "index.php?s=school&c=zkzy&m=index&cid=$1", "ckzy\/([0-9]+).html" => "index.php?s=school&c=ckzy&m=index&cid=$1", "yczy\/([0-9]+).html" => "index.php?s=school&c=yczy&m=index&cid=$1", "zsbzy\/([0-9]+).html" => "index.php?s=school&c=zsbzy&m=index&cid=$1", "ddzy\/([0-9]+).html" => "index.php?s=school&c=ddzy&m=index&cid=$1", "yjszy\/([0-9]+).html" => "index.php?s=school&c=yjszy&m=index&cid=$1", "zkzs\/([0-9]+).html" => "index.php?s=school&c=zkzs&m=index&cid=$1", "ckzs\/([0-9]+).html" => "index.php?s=school&c=ckzs&m=index&cid=$1", "yczs\/([0-9]+).html" => "index.php?s=school&c=yczs&m=index&cid=$1", "zsbzs\/([0-9]+).html" => "index.php?s=school&c=zsbzs&m=index&cid=$1", "ddzs\/([0-9]+).html" => "index.php?s=school&c=ddzs&m=index&cid=$1", "yjszs\/([0-9]+).html" => "index.php?s=school&c=yjszs&m=index&cid=$1", "zkdt\/([0-9]+).html" => "index.php?s=school&c=zkdt&m=index&cid=$1", "ckdt\/([0-9]+).html" => "index.php?s=school&c=ckdt&m=index&cid=$1", "ycdt\/([0-9]+).html" => "index.php?s=school&c=ycdt&m=index&cid=$1", "zsbdt\/([0-9]+).html" => "index.php?s=school&c=zsbdt&m=index&cid=$1", "dddt\/([0-9]+).html" => "index.php?s=school&c=dddt&m=index&cid=$1", "yjsdt\/([0-9]+).html" => "index.php?s=school&c=yjsdt&m=index&cid=$1", "zkwd\/([0-9]+).html" => "index.php?s=school&c=zkwd&m=index&cid=$1", "ckwd\/([0-9]+).html" => "index.php?s=school&c=ckwd&m=index&cid=$1", "ycwd\/([0-9]+).html" => "index.php?s=school&c=ycwd&m=index&cid=$1", "zsbwd\/([0-9]+).html" => "index.php?s=school&c=zsbwd&m=index&cid=$1", "ddwd\/([0-9]+).html" => "index.php?s=school&c=ddwd&m=index&cid=$1", "yjswd\/([0-9]+).html" => "index.php?s=school&c=yjswd&m=index&cid=$1", "zkzx\/([0-9]+).html" => "index.php?s=school&c=zkzx&m=index&cid=$1", "ckzx\/([0-9]+).html" => "index.php?s=school&c=ckzx&m=index&cid=$1", "yczx\/([0-9]+).html" => "index.php?s=school&c=yczx&m=index&cid=$1", "zsbzx\/([0-9]+).html" => "index.php?s=school&c=zsbzx&m=index&cid=$1", "ddzx\/([0-9]+).html" => "index.php?s=school&c=ddzx&m=index&cid=$1", "yjszx\/([0-9]+).html" => "index.php?s=school&c=yjszx&m=index&cid=$1", // 院校表单规则---解析规则----结束 // 独立模块测试规则---解析规则----开始 "info" => "index.php?s=info", "xueli([\w\\/]+)\/([0-9]+)" => "index.php?s=info&c=category&dir=$1&page=$2", "xueli([\w\\/]+)" => "index.php?s=info&c=category&dir=$1", "xueli([\w\\/]+)\/([0-9]+)-([0-9]+).html" => "index.php?s=info&c=show&id=$2&page=$3", "xueli([\w\\/]+)\/([0-9]+).html" => "index.php?s=info&c=show&id=$2", "([a-z]+)\/so\/(.+).html" => "index.php?s=$1&c=search&rewrite=$2", "([a-z]+)\/so" => "index.php?s=$1&c=search", // 解决院校表单规则---解析规则----结束"([\w\\/]+)\/([0-9]+)" => "index.php?s=school&c=category&dir=$1&page=$2","([\w\\/]+)" => "index.php?s=school&c=category&dir=$1", // // 独立模块测试规则---解析规则----结束 //////////////////////////////////////////////////////////////////////////////////////'sitemap.txt' => 'index.php?s=sitemap', // 地图规则'sitemaps.xml' => 'index.php?s=sitemap&c=home&m=xml', // 地图规则'urllist.html' => 'index.php?s=urllist&c=urllist&m=index'];
  • 官方研发技术-张伟
    #7楼    官方研发技术-张伟
    2020-11-16 09:18:48
    Chrome 0
    还需要把http://www.qxwxw.com/zikao/fudao/2.html这个页面的动态地址给我一下,动态的,
  • 小白
    #8楼    小白
    2020-11-16 09:30:15
    Chrome 0
    官方研发技术-张伟 是哪个url规则吗
  • 官方研发技术-张伟
    #9楼    官方研发技术-张伟
    2020-11-16 09:32:32
    Chrome 0
    就是这个http://www.qxwxw.com/zikao/fudao/ 页面吧,他的动态地址是多少
    index.php?s=********
    现在就差这个了,告诉我就可以给你设置规则了小白
  • 小白
    #10楼    小白
    2020-11-16 09:40:29
    Chrome 0
    官方研发技术-张伟 index.php?s=zikao&c=fudao
  • 官方研发技术-张伟
    #11楼    官方研发技术-张伟
    2020-11-16 09:43:00
    Chrome 0
    "zikao\/fadao\/([0-9]+).html" => "index.php?s=zikao&c=fudao&&page=$1", ///zikao/fudao/2.html
  • 小白
    #12楼    小白
    2020-11-16 09:45:42
    Chrome 0
    官方研发技术-张伟 像我还有很多模块,模块下面有很多栏目,我需要一个个写吗
  • 小白
    #13楼    小白
    2020-11-16 09:45:54
    Chrome 0
    官方研发技术-张伟 有没有总的
  • 小白
    #14楼    小白
    2020-11-16 09:46:41
    Chrome 0
    官方研发技术-张伟 比如模块有zikao,chengkao,dianda等,每个模块下面还有很多栏目,比如

  • 官方研发技术-张伟
    #15楼    官方研发技术-张伟
    2020-11-16 09:50:45
    Chrome 0
    当然可以公共的,你在后台-然后规则设置-伪静态-然后点生成规则,把生成的规则复制给我,然后我给你整理一下
  • 小白
    #16楼    小白
    2020-11-16 10:02:35
    Chrome 0
    官方研发技术-张伟 "([a-z]+)" => "index.php?s=$1", //【通用模块测试规则】模块首页({modname}/) "([a-z]+)\/([\w\\/]+)\/([0-9]+).html" => "index.php?s=$1&c=category&dir=$2&page=$3", //【通用模块测试规则】模块栏目列表(分页)({modname}/{pdirname}/{page}.html) "([a-z]+)\/([\w\\/]+)" => "index.php?s=$1&c=category&dir=$2", //【通用模块测试规则】模块栏目列表({modname}/{pdirname}/) "([a-z]+)\/([0-9]+)-([0-9]+).html" => "index.php?s=$1&c=show&id=$2&page=$3", //【通用模块测试规则】模块内容页(分页)({modname}/{id}-{page}.html) "([a-z]+)\/([0-9]+).html" => "index.php?s=$1&c=show&id=$2", //【通用模块测试规则】模块内容页({modname}/{id}.html)
  • 小白
    #17楼    小白
    2020-11-16 10:03:29
    Chrome 0
    官方研发技术-张伟 // 共享栏目测试规则---解析规则----开始 "([a-z0-9 \-\_]+)\/([0-9]+)" => "index.php?c=category&dir=$1&page=$2", //【共享栏目测试规则】模块栏目列表(分页)({dirname}/{page}) "([a-z0-9 \-\_]+)" => "index.php?c=category&dir=$1", //【共享栏目测试规则】模块栏目列表({dirname}/) "([a-z0-9 \-\_]+)\/([0-9]+)-([0-9]+).html" => "index.php?c=show&id=$2&page=$3", //【共享栏目测试规则】模块内容页(分页)({dirname}/{id}-{page}.html) "([a-z0-9 \-\_]+)\/([0-9]+).html" => "index.php?c=show&id=$2", //【共享栏目测试规则】模块内容页({dirname}/{id}.html) // 共享栏目测试规则---解析规则----结束 // 共享模块测试规则---解析规则----开始 "([a-z]+)\/search\/(.+).html" => "index.php?s=$1&c=search&rewrite=$2", //【共享模块测试规则】模块搜索页(分页)({modname}/search/{param}.html) "([a-z]+)\/search.html" => "index.php?s=$1&c=search", //【共享模块测试规则】模块搜索页({modname}/search.html) // 共享模块测试规则---解析规则----结束 // 资讯模块测试规则---解析规则----开始 "([a-z]+)\/so\/(.+).html" => "index.php?s=$1&c=search&rewrite=$2", //【资讯模块测试规则】模块搜索页(分页)({modname}/so/{param}.html) "([a-z]+)\/so" => "index.php?s=$1&c=search", //【资讯模块测试规则】模块搜索页({modname}/so) // 资讯模块测试规则---解析规则----结束 // 院校模块测试规则---解析规则----开始 // 院校模块测试规则---解析规则----结束 // 专业模块测试规则---解析规则----开始 // 专业模块测试规则---解析规则----结束 // 专题模块测试规则---解析规则----开始 "([a-z]+)\/so.html" => "index.php?s=$1&c=search", //【专题模块测试规则】模块搜索页({modname}/so.html) // 专题模块测试规则---解析规则----结束 // 动态模块测试规则---解析规则----开始 // 动态模块测试规则---解析规则----结束 // 问题模块测试规则---解析规则----开始 // 问题模块测试规则---解析规则----结束 // 通用模块测试规则---解析规则----开始 "([a-z]+)" => "index.php?s=$1", //【通用模块测试规则】模块首页({modname}/) "([a-z]+)\/([\w\\/]+)\/([0-9]+).html" => "index.php?s=$1&c=category&dir=$2&page=$3", //【通用模块测试规则】模块栏目列表(分页)({modname}/{pdirname}/{page}.html) "([a-z]+)\/([\w\\/]+)" => "index.php?s=$1&c=category&dir=$2", //【通用模块测试规则】模块栏目列表({modname}/{pdirname}/) "([a-z]+)\/([0-9]+)-([0-9]+).html" => "index.php?s=$1&c=show&id=$2&page=$3", //【通用模块测试规则】模块内容页(分页)({modname}/{id}-{page}.html) "([a-z]+)\/([0-9]+).html" => "index.php?s=$1&c=show&id=$2", //【通用模块测试规则】模块内容页({modname}/{id}.html) // 通用模块测试规则---解析规则----结束 // 关联模块测试规则---解析规则----开始 // 关联模块测试规则---解析规则----结束 // 自考成考远程电大院校模块测试规则---解析规则----开始 // 自考成考远程电大院校模块测试规则---解析规则----结束
  • 小白
    #18楼    小白
    2020-11-16 10:03:45
    Chrome 0
    官方研发技术-张伟 下面哪个是完整的的
  • 官方研发技术-张伟
    #19楼    官方研发技术-张伟
    2020-11-16 10:05:01
    Chrome 0
    <?php
    
    /**
    
     * URL解析规则
    
     * 例如:  114.html 对应 index.php?s=demo&c=show&id=114
    
     * 可以解析:  "114.html"  => 'index.php?s=demo&c=show&id=114',
    
     * 动态id解析:  "([0-9]+).html"  => 'index.php?s=demo&c=show&id=$1',
    
     */
    
    return [
    
        ///
        "sitemap.txt" => "index.php?s=sitemap",// 网站地图规则
    
        /***********************下面写你自己的URL解析规则********************/
    
        //////////////////////////////////////////////////////////////////////////////////////
    
        // 院校表单规则---解析规则----开始
    
        "yxzx\/([0-9]+).html" => "index.php?s=school&c=yxzx&m=index&cid=$1",
    
        "yxwd\/([0-9]+).html" => "index.php?s=school&c=yxwd&m=index&cid=$1",
    
        "zkzy\/([0-9]+).html" => "index.php?s=school&c=zkzy&m=index&cid=$1",
    
        "ckzy\/([0-9]+).html" => "index.php?s=school&c=ckzy&m=index&cid=$1",
    
        "yczy\/([0-9]+).html" => "index.php?s=school&c=yczy&m=index&cid=$1",
    
        "zsbzy\/([0-9]+).html" => "index.php?s=school&c=zsbzy&m=index&cid=$1",
    
        "ddzy\/([0-9]+).html" => "index.php?s=school&c=ddzy&m=index&cid=$1",
    
        "yjszy\/([0-9]+).html" => "index.php?s=school&c=yjszy&m=index&cid=$1",
    
        "zkzs\/([0-9]+).html" => "index.php?s=school&c=zkzs&m=index&cid=$1",
    
        "ckzs\/([0-9]+).html" => "index.php?s=school&c=ckzs&m=index&cid=$1",
    
        "yczs\/([0-9]+).html" => "index.php?s=school&c=yczs&m=index&cid=$1",
    
        "zsbzs\/([0-9]+).html" => "index.php?s=school&c=zsbzs&m=index&cid=$1",
    
        "ddzs\/([0-9]+).html" => "index.php?s=school&c=ddzs&m=index&cid=$1",
    
        "yjszs\/([0-9]+).html" => "index.php?s=school&c=yjszs&m=index&cid=$1",
    
        "zkdt\/([0-9]+).html" => "index.php?s=school&c=zkdt&m=index&cid=$1",
    
        "ckdt\/([0-9]+).html" => "index.php?s=school&c=ckdt&m=index&cid=$1",
    
        "ycdt\/([0-9]+).html" => "index.php?s=school&c=ycdt&m=index&cid=$1",
    
        "zsbdt\/([0-9]+).html" => "index.php?s=school&c=zsbdt&m=index&cid=$1",
    
        "dddt\/([0-9]+).html" => "index.php?s=school&c=dddt&m=index&cid=$1",
    
        "yjsdt\/([0-9]+).html" => "index.php?s=school&c=yjsdt&m=index&cid=$1",
    
        "zkwd\/([0-9]+).html" => "index.php?s=school&c=zkwd&m=index&cid=$1",
    
        "ckwd\/([0-9]+).html" => "index.php?s=school&c=ckwd&m=index&cid=$1",
    
        "ycwd\/([0-9]+).html" => "index.php?s=school&c=ycwd&m=index&cid=$1",
    
        "zsbwd\/([0-9]+).html" => "index.php?s=school&c=zsbwd&m=index&cid=$1",
    
        "ddwd\/([0-9]+).html" => "index.php?s=school&c=ddwd&m=index&cid=$1",
    
        "yjswd\/([0-9]+).html" => "index.php?s=school&c=yjswd&m=index&cid=$1",
    
        "zkzx\/([0-9]+).html" => "index.php?s=school&c=zkzx&m=index&cid=$1",
    
        "ckzx\/([0-9]+).html" => "index.php?s=school&c=ckzx&m=index&cid=$1",
    
        "yczx\/([0-9]+).html" => "index.php?s=school&c=yczx&m=index&cid=$1",
    
        "zsbzx\/([0-9]+).html" => "index.php?s=school&c=zsbzx&m=index&cid=$1",
    
        "ddzx\/([0-9]+).html" => "index.php?s=school&c=ddzx&m=index&cid=$1",
    
        "yjszx\/([0-9]+).html" => "index.php?s=school&c=yjszx&m=index&cid=$1",
    
        // 院校表单规则---解析规则----结束
    
        // 独立模块测试规则---解析规则----开始
    
        "info" => "index.php?s=info",
    
        "xueli([\w\\/]+)\/([0-9]+)" => "index.php?s=info&c=category&dir=$1&page=$2",
    
        "xueli([\w\\/]+)" => "index.php?s=info&c=category&dir=$1",
    
        "xueli([\w\\/]+)\/([0-9]+)-([0-9]+).html" => "index.php?s=info&c=show&id=$2&page=$3",
    
        "xueli([\w\\/]+)\/([0-9]+).html" => "index.php?s=info&c=show&id=$2",
    
        "([a-z]+)\/so" => "index.php?s=$1&c=search",
        "([a-z]+)\/so\/(.+).html" => "index.php?s=$1&c=search&rewrite=$2",
    
    
    
        "([a-z]+)\/([0-9]+)-([0-9]+).html" => "index.php?s=$1&c=show&id=$2&page=$3",  //【通用模块测试规则】模块内容页(分页)({modname}/{id}-{page}.html)
    
        "([a-z]+)\/([0-9]+).html" => "index.php?s=$1&c=show&id=$2",  //【通用模块测试规则】模块内容页({modname}/{id}.html)
    
        "([a-z]+)\/([\w\\/]+)\/([0-9]+).html" => "index.php?s=$1&c=category&dir=$2&page=$3",  //【通用模块测试规则】模块栏目列表(分页)({modname}/{pdirname}/{page}.html)
    
        "([a-z]+)\/([\w\\/]+)" => "index.php?s=$1&c=category&dir=$2",  //【通用模块测试规则】模块栏目列表({modname}/{pdirname}/)
    
    
    
    
    
    
    
        // 解决院校表单规则---解析规则----结束
    
        "([\w\\/]+)\/([0-9]+)" => "index.php?s=school&c=category&dir=$1&page=$2",
    
        "([\w\\/]+)" => "index.php?s=school&c=category&dir=$1",  //
    
    
    
    
    
    
    
    
    ];
    你这些规则不太好,最后两组可能出现了冲突,你可以先试一试
    满意答案
  • 小白
    #20楼    小白
    2020-11-23 11:04:52
    Chrome 0
    @官方研发技术-张伟:非常棒,很热心,解决速度也很快,专业!