在设置以下路由配置后,我在CodeIgniter中遇到页面未找到错误。
route.php
$route['admin/signup']='user/signup';
的config.php
$config['uri_protocol']='AUTO';
$config['base_url']='';
$config['index_page']='';
我不确定为什么。
答案 0 :(得分:2)
如果它在localhost中并且您没有重写.htaccess,请确保在使用className / functionName之前放入index.php。
例如(假设您的codeigniter文件托管在xampp中的htdocs中)
http://localhost/index.php/admin/signup