Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 代码点火器3,离子认证和404s_Php_.htaccess_Codeigniter - Fatal编程技术网

Php 代码点火器3,离子认证和404s

Php 代码点火器3,离子认证和404s,php,.htaccess,codeigniter,Php,.htaccess,Codeigniter,我正在为用户系统设置带有ion_auth的Codeigniter 3。它应该是一个简单的安装,但是当调用auth控制器时,我只得到404。我肯定错过了一些明显的东西,但我看不到 基本要求是: $config['base\u url']='http://russellbits.com/labs/codeigniterlab/'; 这是我的服务器和本地文件,我把所有东西都放进去了 $config['index_page']='index.php' 目前我正在避免使用.htaccess文件(直到我找到

我正在为用户系统设置带有ion_auth的Codeigniter 3。它应该是一个简单的安装,但是当调用auth控制器时,我只得到404。我肯定错过了一些明显的东西,但我看不到

基本要求是:
$config['base\u url']='http://russellbits.com/labs/codeigniterlab/';
这是我的服务器和本地文件,我把所有东西都放进去了

$config['index_page']='index.php'
目前我正在避免使用.htaccess文件(直到我找到这些404)

如果我打电话给任何一个
http://russellbits.com/labs/codeigniterlab/index.php/auth/login
http://russellbits.com/labs/codeigniterlab/index.php/

登录和主页显示良好。但一旦我尝试登录,我就会

未找到
在此服务器上找不到请求的URL/public/index.php

仔细检查URL,系统正在调用
http://russellbits.com/labs/codeigniterlab/auth/login
检查您的
配置/routes.php
,确保您没有以下规则:

$route['(:any)'] = 'pages/view/$1';

在codeigniter中,文件名必须有首字母大写。例如,如果您在auth.php中controlelr fille name是auth.php name,那么它将工作感谢您的评论,但是我知道这个细节(以前也有过这个问题),但在这个特殊情况下,更改大小写没有帮助。某个父目录中的.htaccess文件很可能正在修改您的请求。您找到答案了吗?我面临着同样的问题,我在roots中没有.htaccess。你检查了链接是否显示了正确的url吗?还是形式行动?