How to make CodeIgniter accept "query string" URLs?

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2010-05-24T01:10:58Z Indexed on 2010/05/24 1:21 UTC
Read the original article Hit count: 342

Filed under:
|
|

According to CI's docs, CodeIgniter uses a segment-based approach, for example:

example.com/my/group

If I want to find a specific group (id=5), I can visit

example.com/my/group/5

And in the controller, define

function group($id='') {
    ...
    }

Now I want to use the traditional approach, which CI calls "query string" URL. Example:

example.com/my/group?id=5

If I go to this URL directly, I get a 404 page not found. So how can I enable this?

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter