Welcome Guest, Not a member yet? Register   Sign In
URI Special Char Problem
#1

[eluser]Unknown[/eluser]
Hi all,

I'm havnig some problems when I try to allow the character '?' in the URI config parameter.
For some reason when the URI has this char it can't find the controller any more.

Those are my current settings for URI Special chars:

$config['permitted_uri_chars'] = "a-z 0-9~%.:_\-\=";

With this configuration the '=' char is allowed and by adding '?' apparenty ? char as well is allow but everytime i have and URI with ? char it just give a 404 error.

How to allow ? char without enabling String Query?

Thanks
#2

[eluser]Colin Williams[/eluser]
Make sure you have uri_protocol set to PATH_INFO

Code:
$config['uri_protocol'] = "PATH_INFO";

But I must ask. Why do you want a ? in your path if not to denote a query string? (In fact, this is probably not even possible unless it comes through encoded).

If you just want to enable using query strings in your app, change this setting:

Code:
$config['enable_query_strings'] = TRUE;

You can still use friendly URLs with this set (not sure why the docs in the config.php file make it seem not so).




Theme © iAndrew 2016 - Forum software by © MyBB