URL配置解决思路
Jun 13, 2016 pm 12:25 PM
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

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

There are several versions of thinkphp

Understand common application scenarios of web page redirection and understand the HTTP 301 status code

Which one is better, laravel or thinkphp?

How to implement HTTP streaming using C++?
