1
@ellswrth:
Good luck!
if ( !isset($_SERVER['REQUEST_URI']) || !$_SERVER[ 'REQUEST_URI' ] ) { // Not defined by IIS - isset returns 1 even when blank
// Under some configs, IIS makes SCRIPT_NAME point to php.exe :-(
if ( !( $_SERVER[ 'REQUEST_URI' ] = @$_SERVER['PHP_SELF'] ) ) {
$_SERVER[ 'REQUEST_URI' ] = $_SERVER['SCRIPT_NAME'];
}
if ( isset( $_SERVER[ 'QUERY_STRING' ] ) ) {
$_SERVER[ 'REQUEST_URI' ] .= '?' . $_SERVER[ 'QUERY_STRING' ];
}
}
Good luck!