![]() |
Redirect Issues with GET parameters - 404 Error - 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: Redirect Issues with GET parameters - 404 Error (/showthread.php?tid=32451) |
Redirect Issues with GET parameters - 404 Error - El Forum - 07-23-2010 [eluser]Unknown[/eluser] I followed the examples online remove index.php from the URL. (see below for the .httaccess) I also setup a default action controller. Everything mostly works okay. http://www.mysite.com goes to the right controller and does the right thing. However, http://www.mysite.com/?ref=p&t2=455 causes a 404 error. I tried every type of uri_protocal and that didn't work, Auto seems to work the best. Also http://www.mysite.com/mycontroller/mymethod/?ref=p&t2=455 works fine. Its only on the default case that doesn't work. I am assuming it is using the GET parameters to figure out the routing. thanks in advance .htaccess looks like: Code: RewriteEngine On Redirect Issues with GET parameters - 404 Error - El Forum - 07-23-2010 [eluser]WanWizard[/eluser] CI standard doesn't support both URI segments and query string variables. As soon as you enable 'query_strings' in the config, it tries to use the query string for routing. Do a search here on 'allow_get_array', you'll find one of my posts describing how to extend CI to support $_GET while still use URI segments for routing. |