jonny jonny - 4 months ago 11
PHP Question

CodeIgniter not run in route

when i download project in
https://www.codeigniter.com/user_guide/installation/downloads.html

CodeIgniter v2.2.0

When i run http://localhost/qldv . i get result is welcome page of codeigniter . But when i register in routes.php with route

$route['admin/welcome'] = 'welcome';


when i go to web with link : http://localhost/qldv/admin/welcome

I dont get welcome page . Result is


Object not found!


Please help me . Thanks

Answer

If you don't disable having to put index.php in the URL (using an htaccess file), this route won't work. This would: http://localhost/qldv/index.php/admin/welcome

To disable index.php in the url look at this question: CodeIgniter removing index.php from url

Comments