CodeIgniter Forums
Problems with a point in the uri - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problems with a point in the uri (/showthread.php?tid=19116)



Problems with a point in the uri - El Forum - 05-28-2009

[eluser]Unknown[/eluser]
Hi @ all

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

my uri:
Code:
http://www.mydomain.ch/ort/st.gallen

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??

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

what I have to do?

Regards Siii


Problems with a point in the uri - El Forum - 05-28-2009

[eluser]Dam1an[/eluser]
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


Problems with a point in the uri - El Forum - 05-28-2009

[eluser]SpooF[/eluser]
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.


Problems with a point in the uri - El Forum - 05-28-2009

[eluser]Unknown[/eluser]
Thank you Dam1an!

Now I found the thread.

http://ellislab.com/forums/viewthread/114218/

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