CodeIgniter Forums
localhost worked, real host won't... *SOLVED* - 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: localhost worked, real host won't... *SOLVED* (/showthread.php?tid=20977)



localhost worked, real host won't... *SOLVED* - El Forum - 07-27-2009

[eluser]tomdelonge[/eluser]
It works find until I put in the htaccess file. Then it has all these errors:
Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 201
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 207
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 210

The weird thing is that if i go to example.com/welcome,
the errors go away and the page displays correctly.

It must have to do when it's getting the default controller (by the way, the page displays correctly after the errors)

Any ideas?

I found the solution in anotherthread:
http://ellislab.com/forums/viewthread/80785/