Sorgu dizesi çalışma stoped

2 Cevap php


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

burada benim. htaccess olduğunu

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";

Herhangi bir öneri harika olurdu.

2 Cevap

Eğer çalışmak sorgu dizeleri gerek tek sebebi jQuery otomatik tamamlama işlevi kullanmak için ise, ben yerine get bir yazı kullanmak için bu işlevi değiştirmek için bir yol olduğuna inanıyorum.

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

Bu sizin için yararlı olup olmadığından emin, ama ben oraya atmak düşündüm değil. Benim Codeigniter projede birkaç alanda başarıyla yapıyor oldum.

Config / config.php bu etkin var?

$config['enable_query_strings'] = TRUE;