CodeIgniter Forums

Full Version: Problem with query strings - ? being added to the url before controller and method
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hi,

I have enabled query strings in my application and I still want to use the standard controller/method url so I have changed my config options to this:

$config['uri_protocol'] = 'PATH_INFO';
$config['allow_get_array'] = TRUE;

This seems to be working fine and I am able to access any get variables as I wish.

However my problem comes when I am using a twitter library to connect my app to twitter oauth. When I am redirected back to my application from twitter for some reason codeigniter appends the ? for the query string before my controller and method so I am left with a url like this:

http://mydomain.com/myapp?/controller/me...iyuiv=oioi

This is obviously not correct and I am being taken to the 404 page instead of where I am meant to be.

Does anyone know what is causing this?

Thanks for looking

El Forum