联系我们
软件销售
投诉邮箱

q@xunruicms.com

请教独立模块,伪静态规则设置
方案栏目:POSCMS 更新时间:2017-09-25 13:10:17

弄了go模块,下面是设置 core\module\go\config   : 请教正确的写法是 ?


"go.html"          => "go/home/index/", 

"go-p-(\d+)-(\d+)-(\d+).html"           => "go/show/index/id/$2/page/$3",

"go-p-(\d+)-(\d+)-(\d+).html"           => "go/show/index/id/$2/page/$3", 

"go-p-(\d+)-(\d+).html"                 => "go/show/index/id/$2", 

"go-r-(\d+)-(\d+).html"               => "go/extend/index/id/$2", 

"go\/([a-z0-9]+).html"          => "go/category/index/dir/$1", 

"go\/([a-z0-9]+)-(\d+).html"          => "go/category/index/dir/$1/page/$2",


undefined: 位置放错误了放到 config/rewrite.php

"go.html"          => "go/home/index/", 
"go-p-(\d+)-(\d+)-(\d+).html"           => "go/show/index/id/$2/page/$3",
"go-p-(\d+)-(\d+)-(\d+).html"           => "go/show/index/id/$2/page/$3", 
"go-p-(\d+)-(\d+).html"                 => "go/show/index/id/$2", 
"go-r-(\d+)-(\d+).html"               => "go/extend/index/id/$2", 
"go\/([a-z0-9]+).html"          => "go/category/index/dir/$1", 
"go\/([a-z0-9]+)-(\d+).html"          => "go/category/index/dir/$1/page/$2",

cndo.org:

"go.html"          => "go/home/index/",
没生效, 页面依旧是 :  index.php?s=go【undefined】1楼

cndo.org: 模块里 设置下网站 可以了【cndo.org】2楼