lilmer Posted March 13, 2014 Share Posted March 13, 2014 (edited) I am using a 1.7 codeigniter and I have a problem using GET request. I use GET because I'm doing a cross browsing ajax with dataType JSONP. When doing a direct access to a method with GET paramater it says 404 error. Here's my sample http://www.site.com/class/method?callback=sample&email=example@mail.com 404 ERROR but when doing this http://www.site.com/class/method/?callback=sample&email=example@mail.com WORKING page loaded but no GET request found. I've been debugging the the framework but still can't find why the page is getting 404 when doing the first sample. By the way the CI framework was modify by someone I don't know. By the way the query string is enable already, but I don't understand the Russian language comment on top // При активации этой возможности вызов контроллеров и методов производится через QueryString (www.site.com/index.php?c=controller&m=method) $config['enable_query_strings'] = TRUE; $config['allow_get_array'] = TRUE; Can anyone help me to process a AJAX request using JSONP. Thanks Edited March 13, 2014 by lilmer Quote Link to comment https://forums.phpfreaks.com/topic/286931-404-on-get-request-codeigniter/ Share on other sites More sharing options...
mhmazrooei Posted April 14, 2014 Share Posted April 14, 2014 always update to the latest stable version. Whould you post your config.php file ? there may be a problem with your config file for security issues. Quote Link to comment https://forums.phpfreaks.com/topic/286931-404-on-get-request-codeigniter/#findComment-1476057 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.