设置路由配置后,在CodeIgniter中找不到页面

时间:2016-01-12 11:27:42

标签: php codeigniter

在设置以下路由配置后,我在CodeIgniter中遇到页面未找到错误。

route.php

$route['admin/signup']='user/signup';

的config.php

$config['uri_protocol']='AUTO';

$config['base_url']='';

$config['index_page']='';

我不确定为什么。

1 个答案:

答案 0 :(得分:2)

如果它在localhost中并且您没有重写.htaccess,请确保在使用className / functionName之前放入index.php。

例如(假设您的codeigniter文件托管在xampp中的htdocs中)

http://localhost/index.php/admin/signup
相关问题