URL Rewrite模式参数有“-”的问题

浏览:335 发布日期:2014/10/09 分类:求助交流 关键字: Rewrite 参数
参数中含有“-”字符,在pathinfo和普通模式不会有问题,但在Rewrite模式就会出问题。str参数为“cn-sz”:

Rewrite模式后地址:http://127.0.0.1/news/cn-sz-62.html
真实地址:http://127.0.0.1/index.php?m=technical_support&a=info&str=cn-sz&id=62

路由规则:'/^news\/(\w+)-(\d+).html$/'=>'technical_support/info?str=:1&id=:2',

结果是:404.很抱歉,您要访问的页面不存在。

我使用的版本是TP3.1
最佳答案
评论( 相关
后面还有条评论,点击查看>>