spaces in URLs converted to _ - 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: spaces in URLs converted to _ (/showthread.php?tid=7288) |
spaces in URLs converted to _ - El Forum - 01-18-2009 [eluser]felyx[/eluser] [quote author="maesk" date="1232134081"]I just ran into the same issue as well, after a lot of print_r()'s and playing with the permitted URI chars etc. I thought let's try the forum and thankfully I found this thread. Special thanks to sophistry and cyang for pointing this out because it would have taken me hours to find this if at all... Code: $config['uri_protocol'] = 'REQUEST_URI'; (config.php, around line 46) did the trick for me.[/quote] Had the same problem with CI v1.7, changing the uri protocol to REQUEST_URI solved it for me also. spaces in URLs converted to _ - El Forum - 01-18-2009 [eluser]Colin Williams[/eluser] My assumption is $_SERVER['PATH_INFO'] gives you underscores whereas $_SERVER['REQUEST_URI'] gives you the +/spaces. If your uri_protocol is AUTO, it's likely CI is going to end up using PATH_INFO. |