php - CodeIgniter error 404 page not found -


i'm having trouble accessing pages or controller exact in codeigniter. default controller working fine, when create new controller can not accessed, when exceute url http://localhost/codeigniter/admin/login shows error 404 page not found. here's controller code, located in codeigniter/applications/controllers/admin/login.php

if (!defined('basepath')) {     exit('no direct script access allowed'); }  class login extends ci_controller {     public function index()     {         $data = array(             'title' => 'login administrator',             'isi' => 'admin/login_view'         );          $this             ->load             ->view('admin/login_view', $data)         ;     } } 

and here's config code :

$config['base_url'] = 'http://localhost/codeigniter/'; $config['index_page'] = 'index.php'; 

and here's .htaccess file, located in root folder (codeigniter)

rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l] 

i'm using local server xampp, did enable rewrite module, changed httpd.conf allowoverride none allowoverride all, still won't working. i'm stuck @ point please :) thankyou.

your .htaccess not working. if try hit url

http://localhost/codeigniter/index.php/admin/login 

its working, more details how remove "index.php" codeigniter url can refer http://theprofessionguru.com/question/remove-indexphp-from-url-in-codeingiter


Comments