1

I have following url:

http://localhost.com/phpdemo/bid/tf/red?

This url redirects through This [ $route['tf/red?'] = "abc/blue" ] to following url:

http://localhost.com/phpdemo/bid/abc/blue

Till now there is no problem. The problem starts when I attach some value with "?" like below:

http://localhost.com/phpdemo/bid/tf/red?a [It always go to default welcome page]

I have tried follwoing routes:

$route['tf/red?(:any)'] = "abc/blue"

$route['tf/red?:any'] = "abc/blue" 

$route['tf/red?(a-zA-Z0-9=)'] = "abc/blue" 

I have tried following config settings:

$config['permitted_uri_chars'] = 'a-z A-Z 0-9~%.:_\-';
$config['enable_query_strings'] = FALSE;
$config['allow_get_array']      = TRUE;

I also checked by using following:

$config['enable_query_strings'] = TRUE;

Now Iam clueless, what is wrong, either with Codeigniter or myself.

Can some one guide me in this regards.

Thanks in advance

1 Answer 1

1

I would look at the value of $config['uri_protocol'] - it is set in the main config.php file and the default is 'AUTO'.

Try each of the possible values to see which works for you - PATH_INFO or REQUEST_URI are common choices.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.