Welcome Guest, Not a member yet? Register   Sign In
Remove index.php using PATH_INFO
#11

[eluser]WanWizard[/eluser]
Thanks.

First thing I notice: SCRIPT_NAME should contain '/index.php' (if it's in the document root). But is doesn't, it contains the URI string (/oauth/confirm). Weird, the SCRIPT_FILENAME does contain the path to index.php. The correct value is however stored in ORIG_SCRIPT_NAME.

Is your apache running in a chrooted environment? Or PHP in CGI mode? If CGI, what's the value of 'cgi.fix_pathinfo' in your php.ini?

As a test, could you add this at the top of your index.php?
Code:
$_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
$_SERVER['SCRIPT_NAME'] = $_SERVER['ORIG_SCRIPT_NAME']
#12

[eluser]Brandon Beasley[/eluser]
Well it looks like I am under a PHP-CGI environment because this solution ended up working:

htaccess for PHP-CGI hosting (and use segments with query strings)
http://ellislab.com/forums/viewthread/96347/

Thanks for all your help WanWizard!
#13

[eluser]Unknown[/eluser]
try this..

$config[‘uri_protocol’] = “REQUEST_URI”; replace REQUEST_URI >> AUTO

$config[‘uri_protocol’] = “AUTO”;

$config[‘enable_query_strings’] = TRUE;

$config[‘permitted_uri_chars’] = ‘a-z? 0-9&=~%.:_\-’;
#14

[eluser]pbreit[/eluser]
Turning on query strings screws up all your URLs.




Theme © iAndrew 2016 - Forum software by © MyBB