Welcome Guest, Not a member yet? Register   Sign In
Routing problem. default_controller not working, all else fine
#1

[eluser]Tobz[/eluser]
Hi ya,
I'm having a strange problem of my default controller not working, I just get a CI 404.
I'm using default rewrite rules to get rid of /index.php/, if I turn off the rewrite engine the default controller loads but of course everything else doesn't.

I've just moved the site to a new server, Ive gone through server settings and can't see anything wrong there.

I am running php(5.2.3) as cgi

need some help.

Thanks in advance.

as a side note im running mysql 5.0.45 but the client with php is only 5.0.37
anyone know where to get the right client?
#2

[eluser]coolfactor[/eluser]
The default_controller should be first in your routes.php file. If you have added your own custom routes, make sure they are at end of the file. It's a known bug that may still exist.
#3

[eluser]Tobz[/eluser]
My default_controller is first.

Aha, got it going. changed /config/config.php : $config['uri_protocol'] from AUTO to REQUEST_URI

It'll just be env variables not being set.
I think its because php as cgi doesn't set PATH_INFO properly or something. I tried the fix from here:
http://ellislab.com/forums/viewthread/52295/
but no go.

all sorted now.




Theme © iAndrew 2016 - Forum software by © MyBB