联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
请教独立模块,伪静态规则设置
类型: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
    #1楼    undefined
    2017-09-25 12:08:29
    0
    位置放错误了放到 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
    #2楼    cndo.org
    2017-09-25 12:35:57
    0
    "go.html"          => "go/home/index/",
    没生效, 页面依旧是 : index.php?s=go【undefined】1楼
  • cndo.org
    #3楼    cndo.org
    2017-09-25 13:10:13
    0
    模块里 设置下网站 可以了【cndo.org】2楼
  • cndo.org
    #4楼    cndo.org
    2017-09-25 13:10:17
    0
    感谢大家给我解决此问题,我已经完美的解决