联系官方销售客服

1835022288

028-61286886

分享经验 版主:论坛审计组
关键字独立模块、图书独立模块、自定义网页、帮助独立模块、
类型:迅睿CMS 更新时间:2025-04-17 19:06:32 伪静态设置

关键字独立模块、图书独立模块、自定义网页、帮助独立模块、文章共享模块,,伪静态设置分享!亲测有效


关键字独立模块

https://abc.org/index.php?s=tag   //目标效果https://abc.org/tag/

https://abc.org/index.php?s=tag&name=1   //目标效果https://abc.org/tag/abc.html


图书独立模块

https://abc.org/index.php?s=book   //目标效果https://abc.org/book

https://abc.org/index.php?s=book&c=category&id=1   //目标效果https://abc.org/book/hao/

https://abc.org/index.php?s=book&c=show&id=1   //目标效果https://abc.org/book/hao/1.html

https://abc.org/index.php?s=book&c=son&m=show&id=1   //目标效果https://abc.org/book/read/1.html


帮助独立模块

https://abc.org/index.php?s=help   //目标效果https://abc.org/help/

https://abc.org/index.php?s=help&c=category&id=5   //目标效果https://abc.org/help/hao/

https://abc.org/index.php?s=help&c=category&id=42   //目标效果https://abc.org/help/hao/henhao/

https://abc.org/index.php?s=help&c=show&id=461   //目标效果https://abc.org/help/461.html


文章共享模块

https://abc.org/index.php?c=category&id=1   //目标效果https://abc.org/xinwen/

https://abc.org/index.php?c=category&id=5   //目标效果https://abc.org/xinwen/guonei/

https://abc.org/index.php?c=show&id=7830   //目标效果https://abc.org/xinwen/guonei/7830.html


return [
//关键词库模块
    "tag" => "index.php?s=tag", // tag首页  /tag/
    "tag\/(.+)\.html" => "index.php?s=tag&name=$1",  // tag内容页   tag/{tag}.html
//独立书籍模块
    "book\/read\/([0-9]+).html(.*)" => "index.php?s=book&c=son&m=show&id=$1", // 书章节页 ({pdirname}/{id}.html)
    "book\/([A-za-z0-9 \-\_\/]+)\/([0-9]+)\.html" => "index.php?s=book&c=show&id=$2", //书首页 ({modname}/{pdirname}/{id}.html)
    "book" => "index.php?s=book", //书首页({modname}/)
    "book\/([A-za-z0-9 \-\_]+)" => "index.php?s=book&c=category&dir=$1",  //书分类页 ({pdirname})  
//帮助模块
    "help\/([0-9]+)\.html" => "index.php?s=help&c=show&id=$1", // ({modname}/{id}.html)
    "help" => "index.php?s=help", //({modname})
    "help\/([A-za-z0-9 \-\_]+)" => "index.php?s=help&c=category&dir=$1",  //  ({modname}/{dirname}/)
//自定义网页
    "page\/([A-za-z0-9 \-\_]+)\.html" => "index.php?s=page&dir=$1", // (page/{dirname}.html)
//共享文章模块
    "([A-za-z0-9 \-\_\/]+)\/p([0-9]+)\.html" => "index.php?c=category&dir=$1&page=$2",  //【带栏目路径】栏目列表(分页)({dirname}/p{page}.html)
    "([A-za-z0-9 \-\_\/]+)\/([0-9]+)\.html" => "index.php?c=show&id=$2",  //【带栏目路径】模块内容页({dirname}/{id}.html)
    "([A-za-z0-9 \-\_\/]+)" => "index.php?c=category&dir=$1",  //【带栏目路径】模块栏目列表({dirname})
   
];


特别要注意的是:  id、dir是有区别的,,少个字母就404,,,随意打赏,,拒绝白嫖!



回帖