Code Igniter: Mixing segment-based URL with GET querystring

Working on a microsite running on Code Igniter, I faced a dilema of adding and extra query string in a page URL, which is already using segment based URL (eg. domain.com/controller_name/page/). Basically I'm trying to do this: domain.com/controller_name/page/?param=myvalue.

Unfortunately CI wouldn't let me use both Segment and Query string. And this is due to the CI configuration.

Thanks to this post http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html, I have managed to find the necessary settings to allow this.

In config.php, edit the following parameters to:

$config['uri_protocol'] = "REQUEST_URI";
$config['enable_query_strings'] = TRUE;

Then it should accept this kind of URL.

< / >