[eluser]steelaz[/eluser]
By setting $config['uri_protocol'] you tell CodeIgniter how to determine what controller and method to call (based on your URL). You can leave it as "AUTO", but if it doesn't work (i.e. CodeIgniter selects wrong controller) you can try different options.
[eluser]hamzakhan[/eluser]
i haven't seen different options for config[‘uri_protocol’].
i wan to know about remaining options.because last night
which i uploaded my project AUTO , and few others was not working.
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = "PATH_INFO";
[eluser]hamzakhan[/eluser]
$config['uri_protocol'] = "PATH_INFO"; workging locallly fine but not working on live server
live server i need to change this protocole to $config['uri_protocol'] = "ORIG_PATH_INFO";
please tell me where is the problem
[eluser]Clooner[/eluser]
[quote author="hamzakhan" date="1277836931"]i always need to change the uri protocole when get live and local.
tell me better solution[/quote] A better solution is to better configure your live development server so it is the same as your live location. That's the problem not CI
[eluser]steelaz[/eluser]
You can always use some kind of detection to switch settings between local and live environment. Here's an example of what I'm using right now: