Os:ubuntu 14.01
Web server:apache/2.4.12
Pseudo-static removal of index.php using TP frame
. htaccess content:
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
Access Address: Http://domain/index/test
Apache jump 404 Not Found
Discover through Google
Http://stackoverflow.com/questions/21698245/404-returned-though-rewrite-rule-is-matched
Need to change configuration on the virtual host profile, my native virtual host configuration already has options multiviews, need to change
Options-multiviews
Find out more about the information
multiviews:
- Using a ' multiviews ' search, where the server does an implicit filename pattern match and chooses from among the results.
English is a little slag, the following is the translation results
make an implicit filename pattern match and select the result on the server.
If the access address is http://domain/index/test and the root directory has index.php, the address is resolved to http://domain/index.php/test
In the rewrite Index/test,apache will look for the directory under the index.php file, if you have access to this file, similar if the address is other/info, will look for other.php file
Apache rewrite and options MultiViews have to say the secret