Welcome Guest, Not a member yet? Register   Sign In
codeigniter 2.0 default controller not working in server but working in localhost
#1

[eluser]jayapalchandran[/eluser]
I have set up a virtual host in my local machine assume it as http://local.he

I have a home.php in the main controllers folder
i have two sub folder inside controllers folder and they are admin and wori each of which is having a home.php

as per CI 2.0 if i access http://local.he/module/wori then it should load home.php from wori
and it is working

but when i did the same in the server after uploading the files it loads from module always. even if i access some thing like this http://site.com/module/wori/users it is still loading the home.php from module.

here is the .htaccess

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|js|css|static)
RewriteRule ^(.*)$ index.php/$1 [L]

here is the routing

Code:
$route['default_controller'] = "home";
$route['404_override'] = '';

These two are the only executable lines in routes.php

and when i tried to access http://site.com/module/index.php/wori or http://site.com/module/index.php/wori/users then it works

i checked htaccess and it is working for other modules in my site.

what is missing?




Theme © iAndrew 2016 - Forum software by © MyBB