x
 
Create New Page

Revision: Workaround for Forced Query Strings

Revision from: 13:01, 25 Nov 2006

On some servers that run PHP as a CGI process and do not support the PATH_INFO server variable, this may allow you to run your site without forced query strings.

Open your index.php file and find the line:

$path_info = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');

Replace it with:

$path_info = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO');

If you are already using Forced Query Strings, remember to disable that option in your system preferences, and change the $qtype variable in the index.php back to ‘0’.

One user has reported that with GoDaddy Linux shared hosting, ORIG_PATH_INFO is supported.

Category:URLs

Categories: