且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Linux Apache2上找不到CodeIgniter URL文件

更新时间:2023-11-17 09:07:52

将.htaccess文件更改为此:

Change your .htaccess file to this:

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

在您的配置文件中,尝试以下操作:

In your config file, try this:

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

那可能会帮你解决问题.

That might fix you up.