Thinphp3.2 what's wrong with the dynamic routing rule?-php Tutorial

Source: Internet
Author: User
I configured this & nbsp; and directly jumped to the custom empty controller. based on the following rule thinphp 3.2 dynamic routing rules, please help me see what went wrong.
Normal access address
Http: // localhost/index. php/Home/Picture/contentPic/id/16.html
The address of the route
Http: // localhost/index. php/Home/16.html

I directly jumped to the custom empty controller with this configuration.

According to the following rules


// Enable routing
'URL _ ROUTER_ON '=> true,
/* Dynamic routing */
'URL _ ROUTE_RULES '=> array (
'Home/: id \ d.html '=> "/Picture/contentPic/id/: 1 ",
),


The url mode is also a normal route. there is no problem with logon registration.

'URL _ model' => 1, // URL access mode. optional parameters: 0, 1, 2, and 3, which represent the following four modes:
// 0 (normal mode); 1 (PATHINFO mode); 2 (REWRITE mode); 3 (compatible mode): PATHINFO mode by default

Thank you for your understanding ~
------ Solution ----------------------
Where can the current tracing method jump?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.