CodeIgniter Forums
GET parameters provoke redirection to default controller/action - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: GET parameters provoke redirection to default controller/action (/showthread.php?tid=41675)



GET parameters provoke redirection to default controller/action - El Forum - 05-13-2011

[eluser]Unknown[/eluser]
Hi people, I have an strange behavior here:

I developed an application and on localhost works fine, but on the server (MediaTemple), when there are get parameters in the url (ex, searches) I got redirected to default controller/action.

Any ideas where to start from?

EDIT: The URL I navigated was something like http://mydomain.com/index.php/not_default_controller/some_action?q=value

This is the LOG
Code:
DEBUG - 2011-05-13 15:43:24 --> Config Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Hooks Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Utf8 Class Initialized
DEBUG - 2011-05-13 15:43:24 --> UTF-8 Support Enabled
DEBUG - 2011-05-13 15:43:24 --> URI Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Router Class Initialized

!!!
DEBUG - 2011-05-13 15:43:24 --> No URI present. Default controller set.
!!!

DEBUG - 2011-05-13 15:43:24 --> Output Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Input Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Global POST and COOKIE data sanitized
DEBUG - 2011-05-13 15:43:24 --> Language Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Loader Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Helper loaded: auth_helper
DEBUG - 2011-05-13 15:43:24 --> Helper loaded: url_helper
DEBUG - 2011-05-13 15:43:24 --> Helper loaded: form_helper
DEBUG - 2011-05-13 15:43:24 --> Helper loaded: doctrine_helper
DEBUG - 2011-05-13 15:43:24 --> Helper loaded: content_type_helper
DEBUG - 2011-05-13 15:43:24 --> Helper loaded: paginator_helper
DEBUG - 2011-05-13 15:43:24 --> Helper loaded: tree_helper
DEBUG - 2011-05-13 15:43:24 --> Database Driver Class Initialized
DEBUG - 2011-05-13 15:43:24 --> Controller Class Initialized

-------------------------------------------------------------------------------------
AND HERE COMES THE REDIRECT
-------------------------------------------------------------------------------------

DEBUG - 2011-05-13 15:43:25 --> Config Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Hooks Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Utf8 Class Initialized
DEBUG - 2011-05-13 15:43:25 --> UTF-8 Support Enabled
DEBUG - 2011-05-13 15:43:25 --> URI Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Router Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Output Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Input Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Global POST and COOKIE data sanitized
DEBUG - 2011-05-13 15:43:25 --> Language Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Loader Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Helper loaded: auth_helper
DEBUG - 2011-05-13 15:43:25 --> Helper loaded: url_helper
DEBUG - 2011-05-13 15:43:25 --> Helper loaded: form_helper
DEBUG - 2011-05-13 15:43:25 --> Helper loaded: doctrine_helper
DEBUG - 2011-05-13 15:43:25 --> Helper loaded: content_type_helper
DEBUG - 2011-05-13 15:43:25 --> Helper loaded: paginator_helper
DEBUG - 2011-05-13 15:43:25 --> Helper loaded: tree_helper
DEBUG - 2011-05-13 15:43:25 --> Database Driver Class Initialized
DEBUG - 2011-05-13 15:43:25 --> Controller Class Initialized
DEBUG - 2011-05-13 15:43:26 --> File loaded: ../asterisk/views/content/index.php
DEBUG - 2011-05-13 15:43:26 --> File loaded: ../asterisk/views/layout.php
DEBUG - 2011-05-13 15:43:26 --> Final output sent to browser
DEBUG - 2011-05-13 15:43:26 --> Total execution time: 0.8394