简体   繁体   中英

Codeigniter 3, ion_auth and 404s

I'm setting up Codeigniter 3 with ion_auth for the user system. It should be a straightforward install, but I am getting nothing but 404s when calling the auth controller. 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)

If I call either
http://russellbits.com/labs/codeigniterlab/index.php/auth/login or 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.

Double-checking the URL, the system is calling http://russellbits.com/labs/codeigniterlab/auth/login <- Note: no index.php

And I don't know where the system is getting the idea that it needs to call the /public folder. That folder neither exists nor is in any of the config files. Any thoughts?

检查您的config/routes.php并确保没有以下规则:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM