In your config.php , change the following:
$config['uri_protocol'] = 'AUTO'; $config['permitted_uri_chars'] = 'az 0-9~%.:_\-'; $config['enable_query_strings'] = FALSE; 'az 0-9 ~%:. _ \ -'; $config['uri_protocol'] = 'AUTO'; $config['permitted_uri_chars'] = 'az 0-9~%.:_\-'; $config['enable_query_strings'] = FALSE;
To:
$config['uri_protocol'] = 'REQUEST_URI'; $config['permitted_uri_chars'] = 'az 0-9~%.:_\-?'; $config['enable_query_strings'] = TRUE;
Instead of messing around with Query Strings, you can change your URI for the use of such segments as http://www.site.com/confirm/code/f8c53b1578f7c05471d087f18b343af0c3a638 . To access the code segment, you have to use $this->uri->segment(3); . Personally, I prefer this way of using Query Strings. See. The URI-class
source share