Home > Backend Development > PHP Tutorial > URL配置解决思路

URL配置解决思路

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:25:38
Original
952 people have browsed it

URL配置
http://localhost/date/?id=123&num=101配置成http://localhost/date/123/101,能具体写个代码给我看看嘛??谢谢
------解决思路----------------------
tp框架的吗!!
------解决思路----------------------
RewriteRule ^date/([0-9]+)/([0-9]+)$ date.php?id=$1&num=$2




------解决思路----------------------
参考thinkPHP的路由配置
http://document.thinkphp.cn/manual_3_2.html#route_define
------解决思路----------------------
参考thinkPHP的路由配置
http://document.thinkphp.cn/manual_3_2.html#route_define

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
Latest Issues
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template