Periods in URLs are removed - 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: Periods in URLs are removed (/showthread.php?tid=16850) |
Periods in URLs are removed - El Forum - 03-18-2009 [eluser]Marcel Karras[/eluser] Hello, have a look at the following request URL: Code: http://localhost/my_project/de/system/my_class/my_method/my_param/My parameter value./my_further_param/100/ Code: echo '1: '.$this->uri->uri_string().'<br/>'; Code: 1: http://localhost/my_project/de/system/my_class/my_method/my_param/My parameter value/my_further_param/100/ Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; Code: RewriteEngine On Greetings - Marcel Periods in URLs are removed - El Forum - 03-18-2009 [eluser]pistolPete[/eluser] Try the different settings of Code: $config['uri_protocol'] = ?; Periods in URLs are removed - El Forum - 03-18-2009 [eluser]Marcel Karras[/eluser] This is no option for me as I've been working with "AUTO" for the whole project and a change will effect the overall behavoir. Maybe the only chance for me is to use the Encryption Class and encode/decode the variables? Periods in URLs are removed - El Forum - 03-18-2009 [eluser]pistolPete[/eluser] Quote:a change will effect the overall behavoir.Why? Your URLs still look the same, you just change CI's internal way on how to retrieve the URI segments. This shouldnt affect any of your code! Periods in URLs are removed - El Forum - 03-18-2009 [eluser]Marcel Karras[/eluser] If I use "QUERY_STRING" for instance not even the start page can be found. (404 errors on all pages) A change to "PATH_INFO" for instance brakes my "redirect('path/to/controller')" methods. Is there another way to circumvent this behavior? Periods in URLs are removed - El Forum - 03-18-2009 [eluser]xwero[/eluser] How does path_info break your redirects? Periods in URLs are removed - El Forum - 03-18-2009 [eluser]Marcel Karras[/eluser] Sorry, it was "QUERY_STRING" not "PATH_INFO" but the latter doesn't affect the above described removing of periods. Periods in URLs are removed - El Forum - 03-18-2009 [eluser]xwero[/eluser] Try updating the router and uri class, i just tested your url using 1.7.0 and the period stays in the uri_string. |