[eluser]nbdr[/eluser]
I need CI to work with URL parameters as well as the regular path structures.
I read in several threads that the solution is to change:
$config['uri_protocol']="PATH_INFO"; AND $config['enable_query_strings'] = TRUE;
When I changed to $config['uri_protocol']="PATH_INFO"; only the homepage worked and all of the links mysite/page/ gives the homepage.
I then found that $_SERVER['PATH_INFO'] does not exist. in fact the query parameters only appear in REQUEST_URI and not in any other $_SERVER part.
So I checked the htaccess file and changed
RewriteRule ^(.*)$ index.php?/$1 [L]
to
RewriteRule ^(.*)$ index.php?/$1 [QSA,L] to allow url params to pass. Now url params appear also in REDIRECT_QUERY_STRING, QUERY_STRING AND REQUEST_URI.
The problem: I tried $config['uri_protocol'] with all the above options but still CI gives error 404 whenever I add URL parameters.
Note: I tried the above on 2 servers. One of them is centos5/Apache2/Plesk VPS and another one is on xampp/Vista.