Home  >  Article  >  Backend Development  >  新手,url的配置

新手,url的配置

WBOY
WBOYOriginal
2016-06-23 13:28:551011browse

怎么样把http://ocalhost/date/?id=1001&num=1配置成http://localhost/date/1001/1    求指教


回复讨论(解决方案)

thinkphp?

想把后面的配置成前面的才比较难吧
后面就是很普通的路径

用thinkphp的路由功能啊。。你可以去官方手册看看

用伪静态方式 

一个是传统的 url,一个是 path_info 
都是你指定的,不是什么配置来的

CI框架中url 默认模式就是path_info

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