Mac under CodeIgniter under Apache to remove index.php

Source: Internet
Author: User
Tags codeigniter


1. To modify the Apache configuration file, let Apache support Rewrite_module, the modification process is as follows: Open Apache configuration, Conf/httpd.conf:loadmodule rewrite_module modules/, remove the # before the line.

2. Search AllowOverride None that is Options Indexes followsymlinks multiviews under that, modified to allowoverride all (normally there are two, two are to be modified!) )

3. Create a new. htaccess file in the root directory of the project as follows:

<ifmodule mod_rewrite.c>
Rewriteengine on
Rewriterule ^ (. *) $/index.php/$1 [L]

#若你的项目名为: Testci here should be rewriterule ^ (. *) $/testci/index.php/$1 [L]

4. Restart your Apache service so you don't have to index.php!

Mac under CodeIgniter under Apache to remove index.php

Related Article

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