Welcome Guest, Not a member yet? Register   Sign In
Can't load a controller except the "default" one
#1

[eluser]mrmuggles[/eluser]
I developed a website with CI on my computer (Windows/Apache) and it's working fine. (PHP/5.3.1 and CI 1.7.2)

I migrated to a php 5.3.6 Linux/Apache server.

Now, any URL that I call will display the default controller. Even a URL that should'nt exists will call the default controller set in routes.php.

Here's the content of "config/routes.php"
------------------------
$route['default_controller'] = "home";
$route['scaffolding_trigger'] = "";
------------------------

my .htaccess:
------------------------
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|js|css|phpMyAdmin|captcha|img_crop|user_guide)
RewriteRule ^(.*) index.php?/$1 [L]
------------------------

Any idea?
#2

[eluser]mrmuggles[/eluser]
Here was the problem :
I had
$config['uri_protocol'] = "PATH_INFO";
in the config.php file.

I changed it to
$config['uri_protocol'] = "AUTO";
and everything worked!

Smile




Theme © iAndrew 2016 - Forum software by © MyBB