CodeIgniter Forums
Url Problems - 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: Url Problems (/showthread.php?tid=28368)



Url Problems - El Forum - 03-09-2010

[eluser]Unknown[/eluser]
Hello,

I am trying to use codeigniter for a api. But it translating dots and spaces into underscorces in the url Example

/comments/testing+form+through+api/customer_id/4/email/[email protected]/

In the database:
Comments: testing_form_through_api
Email: simon@about-australia_com

How do I fix this?

Thank you in advance,

Simon


Url Problems - El Forum - 03-09-2010

[eluser]rdjs[/eluser]
do you have Enable Query Strings set to true in the config?

$config['enable_query_strings'] = TRUE;


Url Problems - El Forum - 03-09-2010

[eluser]Unknown[/eluser]
Thanks rdjs, I have changed the config to use query strings and it now works