[英]Codeigniter 3, ion_auth and 404s
I'm setting up Codeigniter 3 with ion_auth for the user system. 我正在使用ion_auth为用户系统设置Codeigniter 3。 It should be a straightforward install, but I am getting nothing but 404s when calling the auth controller.
这应该是一个简单的安装,但是在调用auth控制器时我什么也看不到,只有404s。 I must be missing something obvious, but I can't see it.
我肯定缺少明显的东西,但看不到。
The basics are: 基础是:
$config['base_url'] = 'http://russellbits.com/labs/codeigniterlab/';
That's my server and the local file I've put everything in 那是我的服务器和本地文件,我已将所有内容都放入
$config['index_page'] = 'index.php';
For the moment I'm avoiding the .htaccess file (until I figure out these 404s) 目前,我避免使用.htaccess文件(直到我找出这404个)
If I call either 如果我打电话给
http://russellbits.com/labs/codeigniterlab/index.php/auth/login
or http://russellbits.com/labs/codeigniterlab/index.php/
http://russellbits.com/labs/codeigniterlab/index.php/auth/login
或http://russellbits.com/labs/codeigniterlab/index.php/
The login and main pages show up fine. 登录页面和主页显示良好。 Once I try to log in though, I get
但是,一旦尝试登录,我就会
Not Found
未找到
The requested URL /public/index.php was not found on this server.在此服务器上找不到请求的URL /public/index.php。
Double-checking the URL, the system is calling http://russellbits.com/labs/codeigniterlab/auth/login
<- Note: no index.php 仔细检查URL,系统正在调用
http://russellbits.com/labs/codeigniterlab/auth/login
<-注意:没有index.php
And I don't know where the system is getting the idea that it needs to call the /public folder. 而且我不知道系统在哪里需要调用/ public文件夹的想法。 That folder neither exists nor is in any of the config files.
该文件夹既不存在,也不在任何配置文件中。 Any thoughts?
有什么想法吗?
检查您的config/routes.php
并确保没有以下规则:
$route['(:any)'] = 'pages/view/$1';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.