views:

36

answers:

2

Hi,
I have a Codeigniter site which was working perfectly fine on centOS server. But from yesterday the site is not able to detect the query string and I'm getting 500 server error. The same code is working fine at localhost but at the CentOS server its giving error.

I'm using clean URL but for Jquery's Autocomplete I need query string to be worked. this is my query http://www.site.tld/Search/autocomplete/?country=Yes&query=agou

here is my .htaccess

RewriteEngine ON
Rewritebase /


RewriteCond $1 !^(index.php|assets|css|cache|images|flash|js|weather_images|user_images|new_images|crons|favicon\.ico|robots\.txt|system)

RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^system/(.*)$ system/$1 [L]

#Rewirte images rules
RewriteRule ^images/(.*)$ assets/images/$1 [L]
RewriteRule ^css/(.*)$ assets/css/$1 [L]
RewriteRule ^js/(.*)$ assets/js/$1 [L]

RewriteRule ^user_images/(.*)$ assets/user_images/$1 [L]


RewriteRule ^flash/(.*)$ assets/flash/$1 [L]

RewriteRule ^new_images/(.*)$ assets/new_images/$1 [L]

RewriteRule ^weather_images/(.*)$ assets/weather_images/$1 [L]

I'm Using Codeigniter 1.7.1
and in my config

$config['uri_protocol'] = "AUTO";

Any suggestion would be great.

A: 

Have you enabled this in config/config.php ??

$config['enable_query_strings'] = TRUE;

shikhar
yes I have in both cases its not working.
MakDotGNU
500 interval error is generally encountered with a wrong htaccess, try debugging the htaccess by making sure there's no server alias etc in place ..
shikhar
A: 

If the only reason you need query strings to work is to use jQuery's autocomplete function, I believe there is a way to modify that function to use a post instead of a get.

http://stackoverflow.com/questions/1512607/set-jquery-autocomplete-http-method-to-post

Not sure if that is helpful to you, but thought I would throw it out there. I've been doing that successfully for a few areas in my Codeigniter project.

someoneinomaha