我构建了 codeigniter 项目,并在本地机器上使用http://works.dev/rcsoft作为基本 url 对其进行了测试。我将该项目上传到 cpanel 和我的新网址,例如http://testsomeone.org/rcsoft。主页正在运行。
但它不适用于其他控制器页面,例如http://testsomeone.org/rcsoft/person。它在给
Not Found
The requested URL /index.php/person was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
但它适用于http://testsomeone.org/rcsoft/index.php/person
我的 .htaccess 文件
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
我的 config.php
$config['base_url'] = 'http://testsomeone.org/rcsoft/';
$config['index_page'] = '';
请帮我。问题是什么?