CodeIgniter Always tip 404

Source: Internet
Author: User
Tags codeigniter
My system is ubuntu-14.04 + nginx-1.4.6 + PHP-5.5.9
The default controller for the Default_controller settings set in application/config/routes.php can be opened normally. But when you enter your own defined controller in the browser, Tip 404, Why?

Reply content:

My system is ubuntu-14.04 + nginx-1.4.6 + PHP-5.5.9
The default controller for the Default_controller settings set in application/config/routes.php can be opened normally. But when you enter your own defined controller in the browser, Tip 404, Why?

Maybe the rewrite was wrong.
It's probably the wrong route configuration.
Maybe the URL was wrong.
In general, the index.php is not short of

It's best to affix the Nginx rewrite rules, route rules, and URLs, or even the code in the controller

This is usually because you do not find the reason for your custom controller, check the controller name and file name, and the corresponding class name is consistent.

You can post the URL. Look at the ...

  • 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.