codeigniter url 导致删除 index.php 时出错

codeigniter url causing error in removing index.php

我昨天发布了关于从 codeigniter 路径中删除索引点 php 的问题,但问题没有解决...所以有人可以来 team viewer 解决我的问题吗...?感谢期待

根文件夹中我的 .htaccess

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

您必须将 .htaccess 文件移动到 index.php 所在的目录,如果存在,则将其从应用程序目录中删除。

然后将以下代码粘贴到 .htaccess 文件中。

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

我假设您已经执行了其他步骤,包括在 WAMP 和 config.php

中打开重写引擎
$config['index_page'] = 'index.php';

$config['index_page'] = '';

同时设置

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

希望对您有所帮助。