2015-12-26 16:23:15 2592次浏览 2条回答 0 悬赏 20 金钱

这个URL http://admin.demo.com/articletype/index.html?page=2&per-page=1 怎么重写伪静态啊 怎么写他的规则啊 求个样式

最佳答案

  • lasmai 发布于 2015-12-28 09:02 举报
    '<controller:\w+>/<action:\w+>/<page:\d+>:<per-page:\d+>' => '<controller>/<action>'
    

    articletype/index/2:1.html

    '<controller:\w+>/<action:\w+>/page/<page:\d+>/per-page/<per-page:\d+>' => '<controller>/<action>'
    

    articletype/index/page/2/per-page/1.html

您需要登录后才可以回答。登录 | 立即注册
小鬼呼呼
经理

小鬼呼呼

注册时间:2015-10-19
最后登录:2016-12-14
在线时长:3小时21分
  • 粉丝0
  • 金钱1105
  • 威望0
  • 积分1135

热门问题