Cakephp default url pointing problems

Source: Internet
Author: User
Cakephp default url pointing to the problem when reading note index s and no scakephp default access localhost is not pointing to localhost/index now I did not create index, so this path shows NotFoundError: therequestedaddress 'cakephp default url pointing problem

Note that the index has s and no s

When cakephp accesses localhost by default, doesn't it point to localhost/index?
I didn't create an index now, so this path shows Not Found

Error: The requested address '/'was not found on this server.
I have created indexs_controller.php.
However, by default, the controller of cakephp is plural ,,
Therefore, the page is correct only when you access localhost/indexs ,,
However, by default, the cakephp route points to localhost/index.
How to change the default point to localhost/indexs


------ Solution --------------------
In config/routes. in the php file, set the file jump route. Router: connect ('/', array ('controller' => 'Pages ', 'Action' => 'display ', 'Home'); set the controller and action in it!

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.