Codeigniter已尝试过多种方法从url中删除index.ph然后无效

here if i user

http://myproject/index.php/control/one

here it will work if i change to

http://myproject/control/one

here it give error of

Not Found

The requested URL /myproject/da/topic_c was not found on this server.
Apache/2.2.3 (CentOS) Server at 10.0.2.139 Port 80

i am using on local

no i have set my .httaccess file to

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
</IfModule>

the rest project fine...

U can try this, This is my Codeigniter .htaccess file

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
AddHandler php5-script .php

Have you removed value of index_page variable in config.php? Go to application/config/config.php find $config['index_page'] = 'index.php'; and replace with $config['index_page'] = '';