CodeIgniter Forums
route not working. - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: General Help (
+--- Thread: route not working. (/thread-67627.html)

route not working. - anmol - 03-16-2017

i am a beginner in codeigniter i have just made one controller user.php and changed my default route to user.but its not working.
my route.php is
$route['default_controller'] = "user";
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

my user.php controller is
class User extends MY_Controller{

    public function index()

view file is
<!doctype html>
<html lang="en">
<meta charset="Utf-8">
<title>Article List</title>

<link rel="stylesheet" href="" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"></head>
url i am inserting is 127.0.01/codeigniter/user.

RE: route not working. - Khanh Minh - 03-17-2017

user.php => User.php if you use Codeigniter 3xx

try it
localhost/codeigniter/ or localhost/codeigniter/index.php/user

RE: route not working. - Wouter60 - 03-19-2017

What do you mean by "not working"? Do you get an error message?