我尝试在服务器上多次更改.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/$1 [L,QSA]
.htaccess文件[第二时间]
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,删除了访问权限。
现在对我没有任何帮助
我的基本网址是http://pixelvision.com.br/
该网站在我的本地Web服务器上运行良好(简易PHP开发/生产),并且在本地Web服务器上运行时不返回任何错误。
但是当我发送整个网站(更新配置文件)并尝试为所有控制器运行return 404错误时
我发现谁使用Code Igniter 3.0的解决方案,如果控制器名称是“ pagecontrol”,则控制器名称必须像“ Pagecontrol”一样,CodeIgniter核心找不到控制器,库,视图以及类似的东西。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句