Home > Backend Development > PHP Tutorial > thinphp 3.2动态路由 规则 求帮忙看眼 错哪了

thinphp 3.2动态路由 规则 求帮忙看眼 错哪了

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:14:00
Original
859 people have browsed it

thinphp 3.2动态路由 规则 求帮忙看眼 哪里错了
正常的访问地址
http://localhost/index.php/Home/Picture/contentPic/id/16.html
路由想要的地址
http://localhost/index.php/Home/16.html

我这么配置 直接跳转到自定义的空控制器上面了

根据下面的规则

<br />//开启路由<br />    'URL_ROUTER_ON'   => true,<br />   /*动态路由*/<br />    'URL_ROUTE_RULES' =>array(<br />       'Home/:id\d.html'=>"/Picture/contentPic/id/:1",<br />    ),<br />
Copy after login


url模式 也是正常的 路由登录注册的都没有问题

'URL_MODEL'             =>  1,       // URL访问模式,可选参数0、1、2、3,代表以下四种模式:
    // 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE  模式); 3 (兼容模式)  默认为PATHINFO 模式

求了解的大神指点下 谢谢了~
------解决思路----------------------
現在的寫法會跳到哪裡?

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template