CodeIgniter Forums
1 GET var in url goes to 404, 2 GET vars in url page displays fine - 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: 1 GET var in url goes to 404, 2 GET vars in url page displays fine (/showthread.php?tid=12995)



1 GET var in url goes to 404, 2 GET vars in url page displays fine - El Forum - 11-06-2008

[eluser]jamie young[/eluser]
To reproduce, take a fresh install of 1.7.0 and go here

http://localhost/CodeIgniter_1.7.0/index.php/welcome?a

you will get 404, at least I do

then try

http://localhost/CodeIgniter_1.7.0/index.php/welcome?a&b

You will get the welcome page

If you check $_REQUEST, you will see a and b are there.


What is the expected behavior here? I would think if 2 vars will work in a url, 1 should work, however I thought CI was supposed to disable all url vars in this fashion unless enable_query_strings is set to TRUE.

Is this a bug or just me not understanding a feature correctly. I am new to CI


1 GET var in url goes to 404, 2 GET vars in url page displays fine - El Forum - 11-06-2008

[eluser]sophistry[/eluser]
i have confirmed this behavior on my setup. it is strange indeed.