Jump to content


This topic is now archived and is closed to further replies.


404 on GET Request codeigniter

Recommended Posts

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

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.