Simple custom queries make router fail.
Situation:
- CodeIgniter 1.5.0.1 out of the zip
- PHP 4.4.0, Apache2, Linux
- GET request with simple query part e.g.: happy=test
$config[‘base_url’] = “http://mydomain/CodeIgniter_1_5_test/”;
$config[‘uri_protocol’] = “AUTO”;
$config[‘index_page’] = “index.php”;
http://mydomain/CodeIgniter_1_5_test/index.php?happy=yes OR
http://mydomain/CodeIgniter_1_5_test/?happy=yes OR
http://mydomain/CodeIgniter_1_5_test?happy=yes OR even
http://mydomain/CodeIgniter_1_5_test?happy OR
http://mydomain/CodeIgniter_1_5_test/index.php?happy
—-> same error:
404 Page Not Found
The page you requested was not found.
Setting the following doesn’t help
$config[‘enable_query_strings’] = TRUE;
- The same error when using .htaccess as described at http://www.codeigniter.com/user_guide/general/urls.html,
$config[‘index_page’] = “”; and http://mydomain/CodeIgniter_1_5_test/?happy=yes
However, in some situations, more complex queries work, while other queries (as above) don’t. E.g. in my application it’s
http://domain/controller/action?orderby=expire_on&order_direction=asc
Would you developers please look at this. Some tests could help as well.
