Original: http://blog.csdn.net/tutngfei1129287460/article/details/18359191
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/ Mod_rewrite.so, 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
Rewritecond%{request_filename}!-f
Rewritecond%{request_filename}!-d
Rewriterule ^ (. *) $/index.php/$1 [L]
#若你的项目名为: Testci here should be rewriterule ^ (. *) $/testci/index.php/$1 [L]
</IfModule>
4. Restart your Apache service so you don't have to index.php!
Mac under CodeIgniter under Apache to remove index.php