CodeIgniter Forums
Cant't set $route['default_controller'] to 'index'? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Cant't set $route['default_controller'] to 'index'? (/showthread.php?tid=28329)



Cant't set $route['default_controller'] to 'index'? - El Forum - 03-08-2010

[eluser]chefnelone[/eluser]
Hello

I was having the "No input file specified." message error which I fixed with setting my .htaccess to:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|public|user_guide|robots\.txt|static)
RewriteRule ^(.*)$ /index.php?/$1 [L]

My issue now is that I can't set:
$route['default_controller'] = "index";

It gives me a 'blank' page.

if I set it to:
$route['default_controller'] = "welcome";
it works fine

But not with 'index'.

Where should I look to fix this?

this is only happening in the remote server, in localhost runs fine.


Cant't set $route['default_controller'] to 'index'? - El Forum - 03-08-2010

[eluser]InsiteFX[/eluser]
Maybe because CodeIgniter runs with it's own index.php file!

Enjoy
InsiteFX