Welcome Guest, Not a member yet? Register   Sign In
Problems with a point in the uri

Hi @ all

I have a (beginner)problem with a point in the uri:

my uri:

when I get the uri with the following code, the result is not that one that I need. The point was replaced by an underscore??

print $this->uri->segment(2);
// the output: st_gallen

what I have to do?

Regards Siii

This sort of thing comes up about once a week, I can't remember the exact thread, but if I remember correctly, its something to do with ancient PHP4 which convert non alphanumeric characters to underscores

Easiest way to fix this would to do a string replace. Only problem with doing that is if you have intentional underscores in your url.

Thank you Dam1an!

Now I found the thread.


I solve this problem with the configuration
$config['uri_protocol']    = "REQUEST_URI";

Theme © iAndrew 2016 - Forum software by © MyBB