迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
联动菜单动态链接是多少
index.php?s=news&c=search&keyword= 这是官方的搜索页面动态地址,
http://demo4.xunruicms.com/demo/search/csxz-beijing.html 这是官方的联动菜单伪静态地址
麻烦告诉一下 联动菜单的动态地址
/**
* 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 [
// 共享栏目---解析规则----开始
"city\/dongguan" => "index.php?s=news&c=search&city=dongguan",
"city\/guancheng" => "index.php?s=news&c=search&city=guancheng",
"city\/nancheng" => "index.php?s=news&c=search&city=nancheng",
"city\/dongcheng" => "index.php?s=news&c=search&city=dongcheng",
"([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}/)
"article\/([0-9]+)-([0-9]+)\.html" => "index.php?c=show&id=$1&page=$2", //【共享栏目】模块内容页(分页)(article/{id}-{page}.html)
"article\/([0-9]+)\.html" => "index.php?c=show&id=$1", //【共享栏目】模块内容页(article/{id}.html)
// 共享栏目---解析规则----结束
// 共享模块---解析规则----开始
"so\/(.+)" => "index.php?s=news&c=search&rewrite=$1", //【共享模块】模块搜索页(分页)({modname}/so/{param}/)
"so" => "index.php?s=news&c=search", //【共享模块】模块搜索页({modname}/so/)
// 共享模块---解析规则----结束
// 独立模块---解析规则----开始
"([a-z]+)\.html" => "index.php?s=$1", //【独立模块】模块首页({modname}.html)
"([a-z]+)\/list\/([0-9]+)\/([0-9]+)\.html" => "index.php?s=$1&c=category&id=$2&page=$3", //【独立模块】模块栏目列表(分页)({modname}/list/{id}/{page}.html)
"([a-z]+)\/list\/([0-9]+)\.html" => "index.php?s=$1&c=category&id=$2", //【独立模块】模块栏目列表({modname}/list/{id}.html)
"([a-z]+)\/show\/([0-9]+)\/([0-9]+)\.html" => "index.php?s=$1&c=show&id=$2&page=$3", //【独立模块】模块内容页(分页)({modname}/show/{id}/{page}.html)
"([a-z]+)\/show\/([0-9]+)\.html" => "index.php?s=$1&c=show&id=$2", //【独立模块】模块内容页({modname}/show/{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)
// 独立模块---解析规则----结束
];