我无法从codeigniter 3.1.11中的URl中删除index.php

我无法从codeigniter 3.1.11中的URl中删除index.php,php,.htaccess,codeigniter,Php,.htaccess,Codeigniter,我尝试在可用文档的根文件夹中添加.htaccess。我在网上到处搜索,但什么也没解决我的问题 htaccess中的代码 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] 在apache文件中进行了更改httpd LoadModule rewrite_module modules/mod_rewr

我尝试在可用文档的根文件夹中添加.htaccess。我在网上到处搜索,但什么也没解决我的问题

htaccess中的代码

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

在apache文件中进行了更改httpd

LoadModule rewrite_module modules/mod_rewrite.so

有人能告诉我原因是什么吗

Find the below code
 $config['index_page'] = "index.php"
Remove index.php
$config['index_page'] = ""
在.htaccess文件中编写以下代码

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

重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1[L]

可能是权限问题。需要先检查权限。请列出您迄今为止尝试过的内容?我对这个话题一无所知,但如果你排除已经尝试过的方法,那些知道的人会给你一个更快的答案。现在还不清楚,你在这里试图实现什么。是否要从文件系统中删除index.php?那么这与重写规则和给定的配置文件无关。如果你想保护index.php不被外部访问,这一点应该在你的问题中澄清。是的,我也这么做了,但我没有得到结果。我在root上的.htaccess中添加了这个。我是否也需要放入其他.htacces文件?
some cases the default setting for uri_protocol does not work properly. To solve this 
issue just open the file config.php located in application/config and then find and 
replace the code as:

  Find the below code

 $config['uri_protocol'] = "AUTO"

  Replace it as

 $config['uri_protocol'] = "REQUEST_URI"