Home  >  Article  >  Backend Development  >  URL配置解决思路

URL配置解决思路

WBOY
WBOYOriginal
2016-06-13 12:25:38853browse

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

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