实时网络服务器上的 404 Code Igniter

404 Code Igniter on a live web server

我已经多次尝试在我的服务器上更改我的 .htaccess 文件(Linux、php CGI/FastCGI)

我的虚拟主机是转销商主机,我有两个面板 CP 和 WHM

但是当我上传整个网站时,我只收到 404 错误并遵循我的配置、htaccess 和控制器文件以及文件夹结构

文件夹结构

/
index.php
/application/
/application/views [Contains main view (index page)]
/application/controllers [Contains the main controller]

作为 Code Igniter (3.0) 的默认值

.htaccess 文件[第一次]

DirectoryIndex index.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/ [L,QSA]

.htaccess 文件[第二次]

RewriteEngine on
RewriteBase /
RewriteCond  !^(index\.php|fonts|img|css|js|dashboard|support|robots\.txt)
RewriteRule ^(.*)$ /index.php/ [L]

配置文件

$config['base_url'] = '/';
$config['index_page'] = 'index.php?';
$config['uri_protocol'] = 'REQUEST_URI';

错误日志

ERROR - 2015-02-06 14:53:34 --> 404 Page Not Found: /index
ERROR - 2015-02-06 14:53:35 --> 404 Page Not Found: /index
ERROR - 2015-02-06 14:54:01 --> 404 Page Not Found: /index

我尝试将 URI 协议更改为 CI 中所有可能的选项,更改了 htaccess,删除了访问权限。

目前对我没有任何作用

我的基地 url 站点是 http://pixelvision.com.br/

该网站在我的本地网络服务器上运行良好(简单 PHP Dev/Production) return 在我的本地 Web 服务器上 运行ning 时不要出现任何错误。

但是当我发送整个网站(更新配置文件)并尝试 运行 return 所有控制器时,404 错误

我找到了使用 Code Igniter 3.0 的解决方案,控制器名称需要像这样 "Pagecontrol" 如果 "pagecontrol" CodeIgniter 核心找不到控制器、库、视图和其他东西像这样。