一个实时Web服务器上的404 code点火器点火器、实时、器上、Web

2023-09-02 11:41:24 作者:不努力谁替你成长

我试着改变我的.htaccess文件多次在我的服务器(Linux操作系统,PHP的CGI / FastCGI的)

I've tried change my .htaccess file many times on my server (Linux, php CGI/FastCGI)

我的虚拟主机是经销商托管和我有两个面板的CP和小南国

My web hosting is a reseller hosting and i have both panels the CP and WHM

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

But when i upload my entire website i only receive 404 errors and follow my config,htaccess and controller files and the folder structure

文件夹结构

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

由于从code点火器的默认值(3.0)

As the default from Code Igniter (3.0)

.htaccess文件[第一时间]

.htaccess file [First time]

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

.htaccess文件[第二次]

.htaccess file [Second Time]

RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index.php|fonts|img|css|js|dashboard|support|robots.txt)
RewriteRule ^(.*)$ /index.php/$1 [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的,删除的访问。

i tried to change URI Protocol to all options possible in the CI, changed the htaccess, deleted the access.

现在没有什么工作对我来说

For now nothing worked for me

我的基本网址的网站 http://pixelvision.com.br/

该网站的工作井在我的本地网络服务器(简单的PHP开发/生产) 而且不返回任何错误,当我的本地Web服务器上运行。

The website works wells on my local webserver (Easy PHP Dev/Production) And dont return any error when is running on my local web server.

但是,当我将整个网站(更新配置文件),并尝试运行回报所有控制器的404错误

But when i send the entire website (update the config files) and try to run return for all controllers the 404 error

推荐答案

我找到了解决方案,谁使用code点火器3.0控制器名称必须是这样的的PageControl如果的PageControl的codeIgniter核心没有找到控制器,图书馆,意见,这样的事情。

I found the solution for who uses Code Igniter 3.0 the controller name needs to be like this "Pagecontrol" if is "pagecontrol" the CodeIgniter core do not find the controller, libraries, views, and things like this.