Thinkphp url重写
现在URL
localhost/think22/index.php/Home/Article/index/category/blog.html
想要匹配为
localhost/think22/index.php/Article/blog.html
应该怎么写?
'URL_ROUTER_ON' => true, //开启路由<br /> 'URL_ROUTE_RULES' => array( //定义路由规则<br /> //求教<br /> )
------解决方案--------------------'URL_ROUTER_ON' => true, //开启路由
'URL_ROUTE_RULES' => array( //定义路由规则
blog' => array('index/category/blog'),
),
------解决方案--------------------Home/Article/index/category/blog.html
这个url怎么解释?
Home 控制器
Article 方法名
后面是什么?
Statement: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