不能';t从url中删除index.php


couldn't remove index.php from url

我使用的是CodeIgnitor 3.0.0。我读过很多关于同一问题的问题,但似乎都不适用于我,目前htaccess代码取自CI文档(我也尝试过各种.htaccess代码,给出了不同的答案),还用Rewritebase检查了代码。这是我的.htaccess文件

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

我也检查了我的config.php文件很多次,作为一些答案建议做

$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';

我还检查了Xampp中的write_mode是否也打开,它是否有

AllowOverride All

这和默认路由有什么关系吗?

$route['default_controller'] = 'welcome';

如果需要任何其他文件,请告诉我。我已经花了一天的时间在上面了,如果有任何帮助,我们将不胜感激感谢

在代码点火器中这样做

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /project_name/
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>