Home > Backend Development > PHP Tutorial > 新手,url的配置

新手,url的配置

WBOY
Release: 2016-06-23 13:28:55
Original
1042 people have browsed it

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


回复讨论(解决方案)

thinkphp?

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

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

用伪静态方式 

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

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

Related labels:
source:php.cn
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