Hi there,
I'm using Elliot's Twitter Library for Codeigniter framework (http://www.haughin.com/code/twitter/), the setup went well. But after clicking on allow button on the twitter auth page, it redirected back to the twitter auth page again. I think the problem is with the .htaccess of my server but I cannot get it to work.
This is what I tried so far:
Changed the code into the following setting.
config.php file:
$config['index_page'] = "";
$config['uri_protocol'] = "PATH_INFO";
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\?\=\#\&\-';
$config['enable_query_strings'] = FALSE;
.htaccess file saved under /www/maguro on :
RewriteEngine On
RewriteBase /maguro
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
home.php the controller
function index(){
parse_str($_SERVER['QUERY_STRING'],$_GET);
The result:
- home page displayed
- any other page doesn't work. It displayed "No input file specified"
- if I go directly to the /maguro/index.php/home, it displayed the twitter auth page without a problem. But I don't want the "index.php" to be shown because the callback url i registered on the twitter is not using index.php and I don't want my app to have "index.php" in the url.
My app works fine but NOT the twitter oauth call if I set the following:
config.php
$config['uri_protocol'] = "AUTO";
.htaccess
RewriteRule ^(.*)$ index.php?/$1 [L]
I checked other solution as well but it didn't help me: http://stackoverflow.com/questions/2754088/codeigniter-twitter-library-what-is-my-callback-url-where-can-i-find-it
Any help is appreciated!