一个实时Web服务器上的404 code点火器 [英] 404 Code Igniter on a live web server

查看:145
本文介绍了一个实时Web服务器上的404 code点火器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着改变我的.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.

这篇关于一个实时Web服务器上的404 code点火器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆